ZIYI CHEN ml17z4c 201214999

Dependencies:   mbed

Game/Game.h

Committer:
ziyi11
Date:
2019-05-06
Revision:
8:52e0506e98b8
Parent:
7:8b6f175fcb0e
Child:
9:a8b2086a46e5

File content as of revision 8:52e0506e98b8:

#include "mbed.h"
#include "N5110.h"
#include "Gamepad.h"




class Snake
{
public:
 
    
    Snake();
    ~Snake();
    void init(int x, int y);
    void update(Direction d);
    int getLength();    
    int getX(int head);
    int getY(int head);
    void grow();

private:


    int _x[484];      
    int _y[484];
    int _length;
    int _speed;
    char _oldDirection;


};