Next: C++ Implementation 5/11
Up: Von C++ zu Java
Previous: C++ Implementation 3/11
// Aus: Michael A. Smith, Object-Oriented Software in C++,
// Chapman & Hall, London 1995, Seite 98ff
#ifndef __PLAYER_H__
#define __PLAYER_H__
#include "FourInaRow.h"
#include "Counter.h"
class Player
{
public:
Player();
int get_move(const Boolean) const; // Ask for a move
Counter get_counter(void) const; // Get a counter
void announce(const BoardState) const; // Announce win/draw
private:
Counter the_players_counter;
};
#endif
| © 1997 Gottfried Rudorfer, C++-AG, Lehrveranstaltungen, Abteilung für Angewandte Informatik, Wirtschaftsuniversität Wien, 3/19/1998 |