Ikenna Adrian Ozoemena 201157039

Dependencies:   mbed

Menu/Menu.cpp

Committer:
ikenna1
Date:
2019-04-19
Revision:
30:711d722f3cef
Parent:
25:faba9eb44514
Child:
34:6d0786582d81

File content as of revision 30:711d722f3cef:

#include "Menu.h"


// Constructor
Menu::Menu()
{

}
// Destructor
Menu::~Menu()
{

}
const int kestrel[44][37] =   {
    {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},
    {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},
    {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},
    {0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0},
    {0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,1,1,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0},
    {0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,1,0,0,0,1,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0},
    {0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,1,0,1,1,1,0,1,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0},
    {0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0},
    {0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0},
    {0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0},
    {0,0,0,0,0,0,0,0,0,0,0,0,1,0,1,0,0,0,0,0,0,0,1,0,1,0,0,0,0,0,0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0,0,1,0,0,0,1,0},
    {0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0},
    {0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0},
    {0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0},
    {0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0},
    {0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0},
    {0,0,0,0,1,1,0,0,0,0,0,1,1,0,0,0,0},
    {0,0,0,1,0,1,0,0,0,0,0,1,0,1,0,0,0},
    {0,0,0,1,0,1,0,0,0,0,0,1,0,1,0,0,0},
    {0,0,0,1,0,1,0,0,0,0,0,1,0,1,0,0,0},
    {0,0,0,1,0,1,0,0,0,0,0,1,0,1,0,0,0},
    {0,0,0,1,0,1,0,0,0,0,0,1,0,1,0,0,0},
    {0,0,0,1,0,1,0,0,0,0,0,1,0,1,0,0,0},
    {0,0,0,1,0,1,0,0,0,0,0,1,0,1,0,0,0},
    {0,0,0,1,0,1,0,1,1,1,0,1,0,1,0,0,0},
    {0,0,0,1,0,1,1,0,1,0,1,1,0,1,0,0,0},
    {0,0,0,1,1,0,0,1,1,1,0,0,1,1,0,0,0},
    {0,0,0,1,0,0,1,0,0,0,1,0,0,1,0,0,0},
    {0,0,1,0,1,1,1,1,0,1,1,1,1,0,1,0,0},
    {0,1,0,0,1,0,0,0,0,0,0,0,1,0,0,1,0},
    {1,0,0,0,1,0,0,1,1,1,0,0,1,0,0,0,1},
    {0,0,0,1,0,0,0,1,0,1,0,0,0,1,0,0,0},
    {0,0,0,0,1,0,1,0,0,0,1,0,1,0,0,0,0},
    {0,0,0,0,1,0,0,1,1,1,0,0,1,0,0,0,0},
    {0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0},
    {0,0,0,0,0,0,1,1,1,1,1,0,0,0,0,0,0},
};
const int orion[45][26] = {
    {0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0},
    {0,0,0,0,0,0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0,0,1,0,1,1,1,1,0,1,1,1,1,1,0,1,1,1,1,0,0,0,1,0,0,0,1,0,0,1,0,0,0,0,0,0},
    {1,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},
    {1,0,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},
    {1,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1},
    {0,1,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1},
    {0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1},
};
void Menu::init(int ycursor)
{
    _ycursor = ycursor;

}
void Menu::title(N5110 &lcd,int shipno)
{

    // Print start
    lcd.printString("Play ",2,2);
    lcd.printString("Menu ",2,3);

    if(shipno == 0) {
        lcd.drawSprite(45,1,44,37,(int *)kestrel);
    }
    if(shipno == 1) {
        lcd.drawSprite(55,6,39,17,(int *)imperion);
    }
    if(shipno == 2) {
        lcd.drawSprite(54,1,45,26,(int *)orion);
    }
    
    // draw border and title sprite
    lcd.drawRect(0,0,84,48,FILL_TRANSPARENT);
    lcd.drawSprite(0,0,9,48,(int *)title_screen);
    // SCROLLING
    // as the printString function divides screen into 6 with each line needing eight pixels
    // The problem with the code currently is that the title is defined outside the normal game loop as such,
    // the values for _d which are updated in read_input in the RosenEngine function are never called

    lcd.drawRect(0,_ycursor-1,26,9,FILL_TRANSPARENT);
}

void Menu::update(Direction d)
{
    if (d == N) {
        _ycursor = _ycursor - 8;
    }
    if (d == S) {
        _ycursor = _ycursor + 8;
    }
    if(_ycursor < 16) {
        _ycursor = 16;
    }
    if(_ycursor > 24) {
        _ycursor = 24;
    }

    if (d == W) {
        _xcursor = _xcursor - 1;
    }
    if (d == E) {
        _xcursor = _xcursor + 1;
    }
    if(_xcursor < 0) {
        _xcursor = 0;
    }
    if(_xcursor > 2) {
        _xcursor = 2;
    }
}

int Menu::get_ycursor()
{
    return _ycursor;
}
int Menu::get_xcursor()
{
    return _xcursor;
}
void Menu::disp_ships(N5110 &lcd)
{
    if(_xcursor == 0) {
        lcd.drawSprite(2,1,44,37,(int *)kestrel);
        lcd.drawSprite(41,1,45,41,(int *)kestrel_stats);
    }
    if(_xcursor == 1) {
        lcd.drawSprite(12,6,39,17,(int *)imperion);
        lcd.drawSprite(41,1,45,41,(int *)imperion_stats);
    }
    if(_xcursor == 2) {
        lcd.drawSprite(9,1,45,26,(int *)orion);
        lcd.drawSprite(41,1,45,41,(int *)orion_stats);
    }
}
/*void Menu::scroll(N5110 &lcd, Direction d)
{

}*/