Main Page   Namespace List   Class Hierarchy   Alphabetical List   Data Structures   File List   Data Fields   Globals  

SAction Class Reference

#include <InputActionList.h>


Public Methods

 SAction ()
 SAction (const SAction &Action)
 SAction (int Action)
 SAction (int Action, char *Param)
void SetParam (const char *Param)
bool AllActionDone ()

Data Fields

int m_Action
int m_ActionNumber
char * m_Param
double m_StartingLife
double m_ExecutingLife
bool m_executed
SAction * m_NextAction


Constructor & Destructor Documentation

SAction   [inline]
 

Definition at line 282 of file InputActionList.h.

References m_Action, m_ActionNumber, m_executed, m_ExecutingLife, m_Param, and m_StartingLife.

00283         {
00284                 m_NextAction=NULL;
00285                 m_Action=0;
00286                 m_ActionNumber=0;
00287                 m_executed=false;
00288                 m_StartingLife=(double)((double)glutGet(GLUT_ELAPSED_TIME)/1000);
00289                 m_ExecutingLife=-1;
00290                 m_Param=new char[4];
00291                 sprintf(m_Param,"NULL");
00292         }

SAction const SAction &    Action [inline]
 

Definition at line 293 of file InputActionList.h.

References m_Action, m_ActionNumber, m_executed, m_ExecutingLife, m_NextAction, m_Param, and m_StartingLife.

00294         {
00295                 m_NextAction=Action.m_NextAction;
00296                 m_Action=Action.m_Action;
00297                 m_ActionNumber=0;
00298                 m_executed=Action.m_executed;
00299                 m_StartingLife=Action.m_StartingLife;
00300                 m_ExecutingLife=Action.m_ExecutingLife;
00301                 m_Param=new char[strlen(Action.m_Param)];
00302                 sprintf(m_Param,"%s",Action.m_Param);
00303         }

SAction int    Action [inline]
 

Definition at line 304 of file InputActionList.h.

References m_Action, m_ActionNumber, m_executed, m_ExecutingLife, m_Param, and m_StartingLife.

00305         {
00306                 m_NextAction=NULL;
00307                 m_Action=Action;
00308                 m_ActionNumber=0;
00309                 m_executed=false;
00310                 m_StartingLife=(double)((double)glutGet(GLUT_ELAPSED_TIME)/1000);
00311                 m_ExecutingLife=-1;
00312                 m_Param=new char[4];
00313                 sprintf(m_Param,"NULL");
00314         }

SAction int    Action,
char *    Param
[inline]
 

Definition at line 315 of file InputActionList.h.

References m_Action, m_ActionNumber, m_executed, m_ExecutingLife, m_Param, and m_StartingLife.

00316         {
00317                 m_NextAction=NULL;
00318                 m_Action=Action;
00319                 m_ActionNumber=0;
00320                 m_executed=false;
00321                 m_StartingLife=(double)((double)glutGet(GLUT_ELAPSED_TIME)/1000);
00322                 m_ExecutingLife=-1;
00323                 m_Param=new char[strlen(Param)];
00324                 sprintf(m_Param,"%s",Param);
00325         }


Member Function Documentation

bool AllActionDone   [inline]
 

Definition at line 331 of file InputActionList.h.

References m_executed.

00332         {
00333                 while(this->m_NextAction!=NULL)
00334                 {
00335                         if(this->m_executed==false)
00336                         {
00337                                 return false;//one action is not done return false to keep action
00338                         }
00339                 }
00340                 return true;
00341         }

void SetParam const char *    Param [inline]
 

Definition at line 326 of file InputActionList.h.

References m_Param.

Referenced by ExCInterface::InputCommand(), ExManagerCommand::LoadExecFile(), ExManagerCommand::LoadFile(), ExManagerCommand::LoadSetOfFile(), and ExManagerCommand::ProcessAction().

00327         {
00328                 m_Param=new char[strlen(Param)];
00329                 sprintf(m_Param,"%s",Param);
00330         }


Field Documentation

int m_Action
 

Definition at line 272 of file InputActionList.h.

Referenced by ExManagerCommand::AddAction(), ExManagerCommand::AddCommandAction(), ExManagerCommand::AddNewAction(), ExManagerCommand::AddRepAction(), ExCInterface::InputCommand(), ExManagerCommand::LoadExecFile(), ExManagerCommand::LoadFile(), ExManagerCommand::ProcessAction(), ExManagerCommand::RemoveRepAction(), and SAction().

int m_ActionNumber
 

Definition at line 273 of file InputActionList.h.

Referenced by SAction().

bool m_executed
 

Definition at line 278 of file InputActionList.h.

Referenced by AllActionDone(), ExManagerCommand::ProcessAction(), and SAction().

double m_ExecutingLife
 

Definition at line 277 of file InputActionList.h.

Referenced by ExManagerCommand::LoadExecFile(), ExManagerCommand::ProcessAction(), and SAction().

SAction* m_NextAction
 

Definition at line 280 of file InputActionList.h.

Referenced by ExCInterface::InputCommand(), ExManagerCommand::ProcessAction(), and SAction().

char* m_Param
 

Definition at line 274 of file InputActionList.h.

Referenced by ExManagerCommand::AddCommandAction(), ExManagerCommand::LoadExecFile(), ExManagerCommand::ProcessAction(), SAction(), and SetParam().

double m_StartingLife
 

Definition at line 276 of file InputActionList.h.

Referenced by ExManagerCommand::ProcessAction(), and SAction().


The documentation for this class was generated from the following file:
Generated on Tue Aug 6 20:27:28 2002 for ExNihilo by doxygen1.2.17