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

cell.cpp

Go to the documentation of this file.
00001 /***************************************************************************
00002                           cell.cpp  -  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 #include "cell.h"
00018 
00019 Cell::Cell()
00020 {
00021   clear();
00022 }
00023 
00024 void Cell::clear()
00025 {
00026   color = NOBALL;
00027   anim = ANIM_NO;
00028 }
00029 
00030 Cell& Cell::moveBall(Cell& cell)
00031 {
00032         *this = cell;
00033   cell.clear();
00034   return *this;
00035 }
00036 Cell& Cell::operator= (const Cell& cell)
00037 {
00038   color = cell.color;
00039   anim = cell.anim;
00040         return *this;
00041 }

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