Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

cell.h

Go to the documentation of this file.
00001 /***************************************************************************
00002                           cell.h  -  description
00003                              -------------------
00004     begin                : Fri May 19 2000
00005     copyright            : (C) 2000 by Roman Razilov
00006     email                : Roman.Razilov@gmx.de
00007  ***************************************************************************/
00008 
00009 /***************************************************************************
00010  *                                                                         *
00011  *   This program is free software; you can redistribute it and/or modify  *
00012  *   it under the terms of the GNU General Public License as published by  *
00013  *   the Free Software Foundation; either version 2 of the License, or     *
00014  *   (at your option) any later version.                                   *
00015  *                                                                         *
00016  ***************************************************************************/
00017 #ifndef __cell_h
00018 #define __cell_h
00019 #include "cfg.h"
00020 
00021 
00022 // enum int AnimType {ANIM_NO,ANIM_BORN,ANIM_JUMP,ANIM_RUN,ANIM_BURN,ANIM_BLOCK};
00023 
00024 class Cell {
00025   int color;
00026   int anim;
00027 public:
00028   Cell();
00029 
00030   int getColor() {return ( color );}
00031   int getAnim() {return ( anim );}
00032   bool isFree() { return (( color == NOBALL )? true:false);}
00033 
00034   void setColor(int c) {color = c;}
00035   void setAnim(int a) {anim = a;}
00036   void clear();
00037         Cell& operator = (const Cell& c);
00038 
00039   Cell& moveBall(Cell& cell);
00040 };
00041 #endif

Generated on Sat Nov 5 16:17:28 2005 for OPIE by  doxygen 1.4.2