Next: C++ Implementation 4/11
Up: Von C++ zu Java
Previous: C++ Implementation 2/11
#ifndef __CELL_H__
#define __CELL_H__
#include "FourInaRow.h"
#include "Counter.h"
class Cell
{
public:
Cell();
void clear(void); // Clear the cell
void drop(const Counter c); // Drop a counter into the cell
char holds(void) const; // Return the counters colour
void display(void) const; // Display the contents of a cell
private:
Counter the_counter;
};
#endif
| © 1997 Gottfried Rudorfer, C++-AG, Lehrveranstaltungen, Abteilung für Angewandte Informatik, Wirtschaftsuniversität Wien, 3/19/1998 |