3 #include "Engine/engine.h"
\r
5 #define PLAYGROUND_ROWS 11
\r
6 #define PLAYGROUND_COLS 15
\r
7 #define PLAYGROUND_BORDER_LEFT 20
\r
8 #define PLAYGROUND_BORDER_TOP 66
\r
9 #define PLAYGROUND_BORDER_RIGHT 20
\r
10 #define PLAYGROUND_BORDER_BOTTOM 18
\r
11 #define FIELD_UNIT_WIDTH 40
\r
12 #define FIELD_UNIT_HEIGHT 36
\r
13 #define BOMBERMAN_BASE_SPEED
\r
14 enum TMoveDirection { N,NNE,NE,NEE,E,SEE,SE,SSE,S,SSW,SW,SWW,W,NWW,NW,NNW }; //(0-15 clockwise)
\r
19 Bomberman(int xloc, int yloc);
\r
22 void move(int xloc, int yloc);
\r
23 void move_to(int xloc, int yloc);
\r
24 void move_to_direction(TMoveDirection dir, int speed);
\r
33 int getFieldCenterX();
\r
34 int getFieldCenterY();
\r
38 LPDIRECT3DTEXTURE9 texture;
\r
46 Item(LPDIRECT3DTEXTURE9 t, int texnr, int subwidth, int subheight, int colnr, int rownr);
\r
50 int col, row, tex_num, subitem_height, subitem_width;
\r
53 LPDIRECT3DTEXTURE9 texture;
\r
57 class Playground : public ITask
\r
66 LPDIRECT3DTEXTURE9 background;
\r
67 LPDIRECT3DTEXTURE9 foreground;
\r
70 Bomberman *bomberman;
\r
71 Item *field[PLAYGROUND_COLS][PLAYGROUND_ROWS];
\r