mirror of
https://github.com/ptitSeb/Serious-Engine
synced 2024-11-26 04:05:53 +01:00
74 lines
3.1 KiB
C++
74 lines
3.1 KiB
C++
/*
|
|
* This file is generated by Entity Class Compiler, (c) CroTeam 1997-98
|
|
*/
|
|
|
|
#line 4 "D:/SE1_GPL/Sources/EntitiesMP/Reminder.es"
|
|
|
|
#include "StdH.h"
|
|
|
|
#include <EntitiesMP/Reminder.h>
|
|
#include <EntitiesMP/Reminder_tables.h>
|
|
CEntityEvent *EReminderInit::MakeCopy(void) { CEntityEvent *peeCopy = new EReminderInit(*this); return peeCopy;}
|
|
EReminderInit::EReminderInit() : CEntityEvent(EVENTCODE_EReminderInit) {;
|
|
ClearToDefault(penOwner);
|
|
ClearToDefault(fWaitTime);
|
|
ClearToDefault(iValue);
|
|
};
|
|
void CReminder::SetDefaultProperties(void) {
|
|
m_penOwner = NULL;
|
|
m_fWaitTime = 0.0f;
|
|
m_iValue = 0;
|
|
CRationalEntity::SetDefaultProperties();
|
|
}
|
|
BOOL CReminder::
|
|
#line 27 "D:/SE1_GPL/Sources/EntitiesMP/Reminder.es"
|
|
Main(const CEntityEvent &__eeInput) {
|
|
#undef STATE_CURRENT
|
|
#define STATE_CURRENT STATE_CReminder_Main
|
|
ASSERTMSG(__eeInput.ee_slEvent==EVENTCODE_EReminderInit, "CReminder::Main expects 'EReminderInit' as input!"); const EReminderInit &eri = (const EReminderInit &)__eeInput;
|
|
#line 29 "D:/SE1_GPL/Sources/EntitiesMP/Reminder.es"
|
|
ASSERT (eri . penOwner != NULL );
|
|
#line 30 "D:/SE1_GPL/Sources/EntitiesMP/Reminder.es"
|
|
m_penOwner = eri . penOwner ;
|
|
#line 31 "D:/SE1_GPL/Sources/EntitiesMP/Reminder.es"
|
|
m_fWaitTime = eri . fWaitTime ;
|
|
#line 32 "D:/SE1_GPL/Sources/EntitiesMP/Reminder.es"
|
|
m_iValue = eri . iValue ;
|
|
#line 35 "D:/SE1_GPL/Sources/EntitiesMP/Reminder.es"
|
|
InitAsVoid ();
|
|
#line 36 "D:/SE1_GPL/Sources/EntitiesMP/Reminder.es"
|
|
SetPhysicsFlags (EPF_MODEL_IMMATERIAL );
|
|
#line 37 "D:/SE1_GPL/Sources/EntitiesMP/Reminder.es"
|
|
SetCollisionFlags (ECF_IMMATERIAL );
|
|
#line 40 "D:/SE1_GPL/Sources/EntitiesMP/Reminder.es"
|
|
if(!(m_fWaitTime > 0.0f)){ Jump(STATE_CURRENT,0x02bf0003, FALSE, EInternal());return TRUE;}
|
|
#line 41 "D:/SE1_GPL/Sources/EntitiesMP/Reminder.es"
|
|
SetTimerAfter(m_fWaitTime );
|
|
Jump(STATE_CURRENT, 0x02bf0001, FALSE, EBegin());return TRUE;}BOOL CReminder::H0x02bf0001_Main_01(const CEntityEvent &__eeInput) {
|
|
#undef STATE_CURRENT
|
|
#define STATE_CURRENT 0x02bf0001
|
|
switch(__eeInput.ee_slEvent) {case EVENTCODE_EBegin: return TRUE;case EVENTCODE_ETimer: Jump(STATE_CURRENT,0x02bf0002, FALSE, EInternal()); return TRUE;default: return FALSE; }}BOOL CReminder::H0x02bf0002_Main_02(const CEntityEvent &__eeInput){
|
|
ASSERT(__eeInput.ee_slEvent==EVENTCODE_EInternal);
|
|
#undef STATE_CURRENT
|
|
#define STATE_CURRENT 0x02bf0002
|
|
;
|
|
#line 42 "D:/SE1_GPL/Sources/EntitiesMP/Reminder.es"
|
|
EReminder er ;
|
|
#line 43 "D:/SE1_GPL/Sources/EntitiesMP/Reminder.es"
|
|
er . iValue = m_iValue ;
|
|
#line 44 "D:/SE1_GPL/Sources/EntitiesMP/Reminder.es"
|
|
if(m_penOwner != NULL ){
|
|
#line 45 "D:/SE1_GPL/Sources/EntitiesMP/Reminder.es"
|
|
m_penOwner -> SendEvent (er );
|
|
#line 46 "D:/SE1_GPL/Sources/EntitiesMP/Reminder.es"
|
|
}Jump(STATE_CURRENT,0x02bf0003, FALSE, EInternal());return TRUE;}BOOL CReminder::H0x02bf0003_Main_03(const CEntityEvent &__eeInput){
|
|
ASSERT(__eeInput.ee_slEvent==EVENTCODE_EInternal);
|
|
#undef STATE_CURRENT
|
|
#define STATE_CURRENT 0x02bf0003
|
|
|
|
#line 50 "D:/SE1_GPL/Sources/EntitiesMP/Reminder.es"
|
|
Destroy ();
|
|
#line 52 "D:/SE1_GPL/Sources/EntitiesMP/Reminder.es"
|
|
Return(STATE_CURRENT,EVoid());
|
|
#line 52 "D:/SE1_GPL/Sources/EntitiesMP/Reminder.es"
|
|
return TRUE; ASSERT(FALSE); return TRUE;}; |