Next: C++ Implementation 8/11
Up: Von C++ zu Java
Previous: C++ Implementation 6/11
#include "Cell.h"
Cell::Cell()
{
the_counter = Counter(INVISIBLE);
}
void Cell::clear(void)
{
the_counter = Counter(INVISIBLE);
}
void Cell::drop(const Counter c)
{
the_counter = c;
}
char Cell::holds(void) const
{
return the_counter.colour();
}
void Cell::display(void) const
{
the_counter.display();
}
| © 1997 Gottfried Rudorfer, C++-AG, Lehrveranstaltungen, Abteilung für Angewandte Informatik, Wirtschaftsuniversität Wien, 3/19/1998 |