head	1.2;
access;
symbols
	tonic_4:1.2
	tonic_3:1.2
	tonic_2:1.2
	demo:1.2.0.2
	design_report:1.2
	oral_presentation_freeze:1.1.0.2;
locks; strict;
comment	@ * @;


1.2
date	95.12.02.05.58.54;	author hartmans;	state Exp;
branches;
next	1.1;

1.1
date	95.11.28.04.47.38;	author hartmans;	state Exp;
branches;
next	;


desc
@move_generator.h: a generator with a destructor for moves
@


1.2
log
@Fix errors bringing in David's changes.
@
text
@// This is -*- c++ -*- code

#ifndef __MOVE_GENERATOR_H__
#define __MOVE_GENERATOR_H__

// $Id: move_generator.h,v 1.1 1995/11/28 04:47:38 hartmans Exp $

#include "move.h"


class move_generator {

public:
    // Overview: yields moves from a board in response to valid_moves
// Requires:  That the generator is deleted when no longer used and before the board or game is deleted.

virtual ~move_generator();

    virtual bool get (move *&m) = 0;
    // Effects: Returns true and sets m to be a pointer to a move, or
    // returns false and does not change m.
    // Modifies: m, this

};

#endif

    // Requires: m not be used after this destroyed.
@


1.1
log
@Integrate move_generator
@
text
@d6 1
a6 1
// $Id$
a25 1
inline move_generator::~move_generator() {}
@
