author | zecke <zecke> | 2004-02-17 16:24:32 (UTC) |
---|---|---|
committer | zecke <zecke> | 2004-02-17 16:24:32 (UTC) |
commit | 62b3979c6b23627eeca3b89f6feb491cdab97b08 (patch) (unidiff) | |
tree | 8545969e2a2bf63a618b50e4b0d8fbf7f73bedbd /noncore/games/zlines/cell.h | |
parent | 1207607ebbc59841718b79508fc222cb4eee9fde (diff) | |
download | opie-62b3979c6b23627eeca3b89f6feb491cdab97b08.zip opie-62b3979c6b23627eeca3b89f6feb491cdab97b08.tar.gz opie-62b3979c6b23627eeca3b89f6feb491cdab97b08.tar.bz2 |
Add the zLines port to Opie
-rw-r--r-- | noncore/games/zlines/cell.h | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/noncore/games/zlines/cell.h b/noncore/games/zlines/cell.h new file mode 100644 index 0000000..a124f4c --- a/dev/null +++ b/noncore/games/zlines/cell.h | |||
@@ -0,0 +1,41 @@ | |||
1 | /*************************************************************************** | ||
2 | cell.h - description | ||
3 | ------------------- | ||
4 | begin : Fri May 19 2000 | ||
5 | copyright : (C) 2000 by Roman Razilov | ||
6 | email : Roman.Razilov@gmx.de | ||
7 | ***************************************************************************/ | ||
8 | |||
9 | /*************************************************************************** | ||
10 | * * | ||
11 | * This program is free software; you can redistribute it and/or modify * | ||
12 | * it under the terms of the GNU General Public License as published by * | ||
13 | * the Free Software Foundation; either version 2 of the License, or * | ||
14 | * (at your option) any later version. * | ||
15 | * * | ||
16 | ***************************************************************************/ | ||
17 | #ifndef __cell_h | ||
18 | #define __cell_h | ||
19 | #include "cfg.h" | ||
20 | |||
21 | |||
22 | // enum int AnimType {ANIM_NO,ANIM_BORN,ANIM_JUMP,ANIM_RUN,ANIM_BURN,ANIM_BLOCK}; | ||
23 | |||
24 | class Cell { | ||
25 | int color; | ||
26 | int anim; | ||
27 | public: | ||
28 | Cell(); | ||
29 | |||
30 | int getColor() {return ( color );} | ||
31 | int getAnim() {return ( anim );} | ||
32 | bool isFree() { return (( color == NOBALL )? true:false);} | ||
33 | |||
34 | void setColor(int c) {color = c;} | ||
35 | void setAnim(int a) {anim = a;} | ||
36 | void clear(); | ||
37 | Cell& operator = (const Cell& c); | ||
38 | |||
39 | Cell& moveBall(Cell& cell); | ||
40 | }; | ||
41 | #endif | ||