projects
/
matthijs
/
ABM2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
* Use "col" and "row" instead of i and j.
[matthijs/ABM2.git]
/
ABM2
/
Playground.h
diff --git
a/ABM2/Playground.h
b/ABM2/Playground.h
index 20d10522c07eee8628b45c322b86460ac338aa7f..9cb5e22063f7ca47c2ccfc8d137da2bef014159c 100755
(executable)
--- a/
ABM2/Playground.h
+++ b/
ABM2/Playground.h
@@
-39,19
+39,15
@@
private:
#endif // WIN32
\r
};
\r
\r
#endif // WIN32
\r
};
\r
\r
-class
Item
\r
+class
Tile
\r
{
\r
public:
\r
{
\r
public:
\r
-#ifdef WIN32
\r
- Item(LPDIRECT3DTEXTURE9 t, int texnr, int subwidth, int subheight, int colnr, int rownr);
\r
-#endif // WIN32
\r
- ~Item();
\r
+ Tile(const CMMPointer<Sprite> &sprite, int subsprite, int col, int row);
\r
+ ~Tile();
\r
void Draw();
\r
void Draw();
\r
- int col, row, tex_num, subitem_height, subitem_width;
\r
private:
\r
private:
\r
-#ifdef WIN32
\r
- LPDIRECT3DTEXTURE9 texture;
\r
-#endif // WIN32
\r
+ CMMPointer<Sprite> sprite;
\r
+ int col, row, subsprite;
\r
};
\r
\r
class Playground : public ITask
\r
};
\r
\r
class Playground : public ITask
\r
@@
-69,7
+65,7
@@
private:
#endif // WIN32
\r
\r
Bomberman *bomberman;
\r
#endif // WIN32
\r
\r
Bomberman *bomberman;
\r
-
Item
*field[PLAYGROUND_COLS][PLAYGROUND_ROWS];
\r
+
Tile
*field[PLAYGROUND_COLS][PLAYGROUND_ROWS];
\r
\r
void move_up();
\r
void move_down();
\r
\r
void move_up();
\r
void move_down();
\r