next up previous
Next: C++ Implementation 8/11 Up: Von C++ zu Java Previous: C++ Implementation 6/11

C++ Implementation 7/11

Cell.cc

#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();
}


next up previous
Next: C++ Implementation 8/11 Up: Von C++ zu Java Previous: C++ Implementation 6/11

© 1997 Gottfried Rudorfer, C++-AG, Lehrveranstaltungen, Abteilung für Angewandte Informatik, Wirtschaftsuniversität Wien, 3/19/1998