summaryrefslogtreecommitdiff
path: root/noncore/games/zlines/cell.h
Unidiff
Diffstat (limited to 'noncore/games/zlines/cell.h') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/games/zlines/cell.h41
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
24class Cell {
25 int color;
26 int anim;
27public:
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