All there but errors need fixing

Dependencies:   mbed

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers Tetromino.h Source File

Tetromino.h

00001 #ifndef TETROMINO_H
00002 #define TETROMINO_H
00003 
00004 #include "mbed.h"
00005 #include "N5110.h"
00006 #include "Gamepad.h"
00007 
00008 class Tetromino
00009 {
00010 public:
00011 
00012 Tetromino();
00013 ~Tetromino();
00014 void init(int number, int x, int y, int speed);
00015 void draw(N5110 &lcd, int x);
00016 void update(Direction d, float mag);
00017 Vector2D get_pos();
00018 Vector2D get_velocity();
00019 
00020 private:
00021 
00022 Vector2D _velocity;
00023 
00024 int _x;
00025 int _y;
00026 int _speed;
00027 int _number;
00028 
00029 int blockArray[5];
00030 int blocknumber;
00031 
00032 };
00033 #endif