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.cpp | |
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.cpp | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/noncore/games/zlines/cell.cpp b/noncore/games/zlines/cell.cpp new file mode 100644 index 0000000..61d9431 --- a/dev/null +++ b/noncore/games/zlines/cell.cpp | |||
@@ -0,0 +1,41 @@ | |||
1 | /*************************************************************************** | ||
2 | cell.cpp - 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 | #include "cell.h" | ||
18 | |||
19 | Cell::Cell() | ||
20 | { | ||
21 | clear(); | ||
22 | } | ||
23 | |||
24 | void Cell::clear() | ||
25 | { | ||
26 | color = NOBALL; | ||
27 | anim = ANIM_NO; | ||
28 | } | ||
29 | |||
30 | Cell& Cell::moveBall(Cell& cell) | ||
31 | { | ||
32 | *this = cell; | ||
33 | cell.clear(); | ||
34 | return *this; | ||
35 | } | ||
36 | Cell& Cell::operator= (const Cell& cell) | ||
37 | { | ||
38 | color = cell.color; | ||
39 | anim = cell.anim; | ||
40 | return *this; | ||
41 | } | ||