ELEC2645 (2018/19) / Mbed 2 deprecated el17aio

Dependencies:   mbed

Menu/Menu.cpp

Committer:
ikenna1
Date:
2019-05-08
Revision:
44:a6a361bea806
Parent:
34:6d0786582d81
Child:
45:fe5fc85a5c73

File content as of revision 44:a6a361bea806:

#include "Menu.h"


// Constructor
Menu::Menu()
{

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

}
const int kestrelSprite[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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0,1,0,0,1,0,0,0,1,0,1,1,1,0,1,0,0,0,1,0,0,1,0,0,0,0,0,0,0,1},
    {1,0,1,1,1,1,1,0,1,0,0,1,0,0,0,1,1,0,0,0,1,1,0,0,0,1,0,0,1,0,1,1,1,1,1,0,1},
    {1,1,0,0,0,0,0,1,1,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,1,1,0,0,0,0,0,1,0},
    {0,1,0,0,0,0,0,1,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,1,0,0,0,0,0,1,0},
    {0,0,1,1,1,1,1,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,1,1,1,1,1,0,0},
    {0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,1,1,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,1,1,1,0,0,0,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0},
};

const int  imperionSprite[39][17] = {
    {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,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,1,0,0,1,0,0,0,0,0,1,0,0,1,0,0},
    {0,1,0,0,0,1,0,0,0,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 orionSprite[45][26] = {
    {0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,0,0,0,0,0,0,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0,0,0},
    {1,0,1,0,1,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,SHIP shipUsed)
{

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

    switch (shipUsed) {
        case kestrel:
            lcd.drawSprite(45,1,44,37,(int *)kestrelSprite);
            break;
        case imperion:
            lcd.drawSprite(55,6,39,17,(int *)imperionSprite);
            break;
        case orion:
            lcd.drawSprite(54,1,45,26,(int *)orionSprite);
            break;
    }
    
    // draw border and title sprite
    lcd.drawRect(0,0,84,48,FILL_TRANSPARENT);
    lcd.drawSprite(0,0,9,48,(int *)title_screen);
    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 > 32) {
        _ycursor = 32;
    }

    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 *)kestrelSprite);
        lcd.drawSprite(41,1,45,41,(int *)kestrelStats);
    }
    if(_xcursor == 1) {
        lcd.drawSprite(12,6,39,17,(int *)imperionSprite);
        lcd.drawSprite(41,1,45,41,(int *)imperionStats);
    }
    if(_xcursor == 2) {
        lcd.drawSprite(9,1,45,26,(int *)orionSprite);
        lcd.drawSprite(41,1,45,41,(int *)orionStats);
    }
}
/*void Menu::scroll(N5110 &lcd, Direction d)
{

}*/