Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

Action Struct Reference

#include <action.h>

List of all members.

Public Methods

 Action ()
 Minimal impersonal constructor.

 ~Action ()
 Action (ActionList _action, unsigned short int _energy, char _type, unsigned char _cylinder)
 Full, impersonal, ugly constructor.

 Action (double angle, double height, unsigned short int _energy)
 Personalized for new cylinder.

 Action (unsigned short int _energy, GrowType type)
 Personalized edition to grow.

 Action (unsigned short int _energy, MoveType type)
 Personalized edition to move.

 Action (unsigned char son, unsigned short int _energy)
 Personalized edition to send energy.

 Action (unsigned char son, const char *creationMessage, unsigned long int messageSize)
 Action (unsigned long int agentId, unsigned long int messageSize, const char *message)

Public Attributes

ActionList action
short int energy
unsigned char cylinder
unsigned long int agentId
char type
GrowType growType
MoveType moveType
double angle
char * message
double height
unsigned long int messageSize


Detailed Description

The action (and related variables) that a cylinder may want to perform, if any.

Some variables are in unions, in order to save some memory

See also:
Cylinder

Definition at line 71 of file action.h.


Constructor & Destructor Documentation

Action::Action   [inline]
 

Minimal impersonal constructor.

Definition at line 91 of file action.h.

References action, and none.

Action::~Action  
 

If we drop a cylinder, we may have a message, and so at deletion of the action, we should free memory

Definition at line 30 of file action.cc.

References action, dropCylinder, message, and sendMessageAction.

Action::Action ActionList    _action,
unsigned short int    _energy,
char    _type,
unsigned char    _cylinder
 

Full, impersonal, ugly constructor.

Definition at line 38 of file action.cc.

References action, ActionList, cylinder, energy, none, and type.

Action::Action double    angle,
double    height,
unsigned short int    _energy
 

Personalized for new cylinder.

Definition at line 60 of file action.cc.

References action, angle, energy, height, and newCylinder.

Action::Action unsigned short int    _energy,
GrowType    type
 

Personalized edition to grow.

Definition at line 46 of file action.cc.

References action, energy, growTo, growType, and GrowType.

Action::Action unsigned short int    _energy,
MoveType    type
 

Personalized edition to move.

Definition at line 53 of file action.cc.

References action, energy, moveCylinder, moveType, and MoveType.

Action::Action unsigned char    son,
unsigned short int    _energy
 

Personalized edition to send energy.

Definition at line 67 of file action.cc.

References action, cylinder, energy, and sendEnergy.

Action::Action unsigned char    son,
const char *    creationMessage,
unsigned long int    messageSize
 

Definition at line 73 of file action.cc.

References action, cylinder, dropCylinder, message, and messageSize.

Action::Action unsigned long int    agentId,
unsigned long int    messageSize,
const char *    message
 

Definition at line 87 of file action.cc.

References action, agentId, message, messageSize, and sendMessageAction.


Member Data Documentation

ActionList Action::action
 

Definition at line 72 of file action.h.

Referenced by Action(), Cylinder::performAction(), and ~Action().

unsigned long int Action::agentId
 

Definition at line 80 of file action.h.

Referenced by Action(), and Cylinder::performAction().

double Action::angle
 

Definition at line 82 of file action.h.

Referenced by Action(), and Cylinder::performAction().

unsigned char Action::cylinder
 

Definition at line 79 of file action.h.

Referenced by Action(), and Cylinder::performAction().

short int Action::energy
 

Definition at line 73 of file action.h.

Referenced by Action(), and Cylinder::performAction().

GrowType Action::growType
 

Definition at line 76 of file action.h.

Referenced by Action(), and Cylinder::performAction().

double Action::height
 

Definition at line 86 of file action.h.

Referenced by Action(), and Cylinder::performAction().

char* Action::message
 

Definition at line 83 of file action.h.

Referenced by Action(), Cylinder::performAction(), and ~Action().

unsigned long int Action::messageSize
 

Definition at line 87 of file action.h.

Referenced by Action(), and Cylinder::performAction().

MoveType Action::moveType
 

Definition at line 77 of file action.h.

Referenced by Action(), and Cylinder::performAction().

char Action::type
 

Definition at line 75 of file action.h.

Referenced by Action().


The documentation for this struct was generated from the following files:
Generated on Mon Jun 17 19:54:12 2002 for Svas Server by doxygen1.2.16