summaryrefslogtreecommitdiff
path: root/noncore/games/zlines/cell.cpp
Unidiff
Diffstat (limited to 'noncore/games/zlines/cell.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/games/zlines/cell.cpp41
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
19Cell::Cell()
20{
21 clear();
22}
23
24void Cell::clear()
25{
26 color = NOBALL;
27 anim = ANIM_NO;
28}
29
30Cell& Cell::moveBall(Cell& cell)
31{
32 *this = cell;
33 cell.clear();
34 return *this;
35}
36Cell& Cell::operator= (const Cell& cell)
37{
38 color = cell.color;
39 anim = cell.anim;
40 return *this;
41}