Ikenna Adrian Ozoemena 201157039

Dependencies:   mbed

Menu/Menu.cpp

Committer:
ikenna1
Date:
2019-05-09
Revision:
51:2231e2e141b9
Parent:
45:fe5fc85a5c73
Child:
52:29772e31a620

File content as of revision 51:2231e2e141b9:

#include "Menu.h"


// Constructor
Menu::Menu()
{

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

}
// menu sprites
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,0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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,0,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,0,0,0,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)
{
    // initialize the ycursor value
    _ycursor = ycursor;

}
void Menu::title(N5110 &lcd,SHIP shipUsed)
{
    // menu options
    lcd.printString("Play ",2,2);
    lcd.printString("Ship ",2,3);
    lcd.printString("Menu",2,4);
    // display ship on menu according to the ship selected
    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, Vector2D joystick)
{
    if(-0.25 > joystick.x || joystick.x > 0.25 || -0.25 > joystick.y || joystick.y > 0.25) {
        // update the x and y cursor values based on joystick motion
        if (d == N) {
            _ycursor = _ycursor - 8;
        }
        if (d == S) {
            _ycursor = _ycursor + 8;
        }
        if (d == W) {
            _xcursor = _xcursor - 1;
        }
        if (d == E) {
            _xcursor = _xcursor + 1;
        }
        // limit _xursor and _ycursor values
        if(_ycursor < 16) {
            _ycursor = 16;
        }
        if(_ycursor > 32) {
            _ycursor = 32;
        }
        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)
{
    // Switch ship sprite based on what ship is being used
    switch (_xcursor) {
        case 0:
            lcd.drawSprite(2,1,44,37,(int *)kestrelSprite);
            lcd.drawSprite(41,1,45,41,(int *)kestrelStats);
            break;
        case 1:
            lcd.drawSprite(12,6,39,17,(int *)imperionSprite);
            lcd.drawSprite(41,1,45,41,(int *)imperionStats);
            break;
        case 2:
            lcd.drawSprite(9,1,45,26,(int *)orionSprite);
            lcd.drawSprite(41,1,45,41,(int *)orionStats);
            break;
    }
}