home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The World of Computer Software
/
World_Of_Computer_Software-02-385-Vol-1of3.iso
/
g
/
gina15.zip
/
demos
/
sleuth
/
ChangeFieldsCo
< prev
next >
Wrap
Text File
|
1992-02-27
|
2KB
|
60 lines
// This may look like C code, but it is really -*- C++ -*-
// Module : ChangeFieldsCommand.h Version 1.2
// LastSCCS : 2/26/92 16:38:46
// LastEdit : "Tue Feb 25 10:32:47 1992"
// Description :
// Author :
// Copyright : GMD Schloss Birlinghoven
#ifndef Changefieldscommand_h
#define Changefieldscommand_h
class ChangeFieldsCommand : public SleuthCommand {
META_DEF_1(ChangeFieldsCommand,SleuthCommand);
public:
ChangeFieldsCommand(SleuthDocument *p_document);
ChangeFieldsCommand(SleuthDocument *p_document, Player *p_player,
int p_shape, int p_color, int p_value, int p_how_many);
public:
int GetShape()
{ return shape; }
int GetValue()
{ return value; }
int GetColor()
{ return color; }
int HowMany()
{ return how_many; }
Player *GetPlayer()
{ return player; }
protected:
virtual char *name()
{ return("Change some fields"); };
virtual void doit();
virtual void undoit();
virtual void redoit();
virtual Boolean IsStorable();
virtual Boolean WriteToStream(ostream &p_ostr);
virtual Boolean ReadFromStream(istream &p_istr);
protected:
void ShapeSelect();
void ColorSelect();
void ValueSelect();
void ShapeColorSelect();
void ShapeValueSelect();
void ColorValueSelect();
void FieldSelect();
void FieldMark();
protected:
Player *player;
int shape;
int color;
int value;
int how_many;
FieldList marked_fields;
FieldList owned_fields;
AxiomList new_axioms;
};
#endif