#include <action.h>
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 | 
Some variables are in unions, in order to save some memory
Definition at line 71 of file action.h.
      
  | 
  
| 
 Minimal impersonal constructor. 
  | 
  
      
  | 
  
| 
 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.  | 
  
      
  | 
  ||||||||||||||||||||
| 
 Full, impersonal, ugly constructor. 
 Definition at line 38 of file action.cc. References action, ActionList, cylinder, energy, none, and type.  | 
  
      
  | 
  ||||||||||||||||
| 
 Personalized for new cylinder. 
 Definition at line 60 of file action.cc. References action, angle, energy, height, and newCylinder.  | 
  
      
  | 
  ||||||||||||
| 
 Personalized edition to grow. 
  | 
  
      
  | 
  ||||||||||||
| 
 Personalized edition to move. 
 Definition at line 53 of file action.cc. References action, energy, moveCylinder, moveType, and MoveType.  | 
  
      
  | 
  ||||||||||||
| 
 Personalized edition to send energy. 
 Definition at line 67 of file action.cc. References action, cylinder, energy, and sendEnergy.  | 
  
      
  | 
  ||||||||||||||||
| 
 
 Definition at line 73 of file action.cc. References action, cylinder, dropCylinder, message, and messageSize.  | 
  
      
  | 
  ||||||||||||||||
| 
 
 Definition at line 87 of file action.cc. References action, agentId, message, messageSize, and sendMessageAction.  | 
  
      
  | 
  
| 
 
 Definition at line 72 of file action.h. Referenced by Action(), Cylinder::performAction(), and ~Action().  | 
  
      
  | 
  
| 
 
 Definition at line 80 of file action.h. Referenced by Action(), and Cylinder::performAction().  | 
  
      
  | 
  
| 
 
 Definition at line 82 of file action.h. Referenced by Action(), and Cylinder::performAction().  | 
  
      
  | 
  
| 
 
 Definition at line 79 of file action.h. Referenced by Action(), and Cylinder::performAction().  | 
  
      
  | 
  
| 
 
 Definition at line 73 of file action.h. Referenced by Action(), and Cylinder::performAction().  | 
  
      
  | 
  
| 
 
 Definition at line 76 of file action.h. Referenced by Action(), and Cylinder::performAction().  | 
  
      
  | 
  
| 
 
 Definition at line 86 of file action.h. Referenced by Action(), and Cylinder::performAction().  | 
  
      
  | 
  
| 
 
 Definition at line 83 of file action.h. Referenced by Action(), Cylinder::performAction(), and ~Action().  | 
  
      
  | 
  
| 
 
 Definition at line 87 of file action.h. Referenced by Action(), and Cylinder::performAction().  | 
  
      
  | 
  
| 
 
 Definition at line 77 of file action.h. Referenced by Action(), and Cylinder::performAction().  | 
  
      
  | 
  
| 
 
 Definition at line 75 of file action.h. Referenced by Action().  | 
  
1.2.16