Serious-Engine/Sources/EntitiesMP/EnemyMarker.cpp
2016-03-11 15:57:17 +02:00

88 lines
3.3 KiB
C++

/*
* This file is generated by Entity Class Compiler, (c) CroTeam 1997-98
*/
#line 4 "D:/SE1_GPL/Sources/EntitiesMP/EnemyMarker.es"
#include "StdH.h"
#include <EntitiesMP/EnemyMarker.h>
#include <EntitiesMP/EnemyMarker_tables.h>
void CEnemyMarker::SetDefaultProperties(void) {
m_fWaitTime = 0.0f;
m_fMarkerRange = 0.0f;
m_fPatrolAreaInner = 0.0f;
m_fPatrolAreaOuter = 0.0f;
m_fPatrolTime = 0.0f;
m_betRunToMarker = BET_IGNORE ;
m_betFly = BET_IGNORE ;
m_betBlind = BET_IGNORE ;
m_betDeaf = BET_IGNORE ;
m_bStartTactics = FALSE ;
CMarker::SetDefaultProperties();
}
#line 34 "D:/SE1_GPL/Sources/EntitiesMP/EnemyMarker.es"
BOOL CEnemyMarker::MovesByTargetedRoute(CTString & strTargetProperty)const {
#line 35 "D:/SE1_GPL/Sources/EntitiesMP/EnemyMarker.es"
strTargetProperty = "Target";
#line 36 "D:/SE1_GPL/Sources/EntitiesMP/EnemyMarker.es"
return TRUE ;
#line 37 "D:/SE1_GPL/Sources/EntitiesMP/EnemyMarker.es"
}
#line 40 "D:/SE1_GPL/Sources/EntitiesMP/EnemyMarker.es"
BOOL CEnemyMarker::DropsMarker(CTFileName & fnmMarkerClass,CTString & strTargetProperty)const {
#line 41 "D:/SE1_GPL/Sources/EntitiesMP/EnemyMarker.es"
fnmMarkerClass = CTFILENAME ("Classes\\EnemyMarker.ecl");
#line 42 "D:/SE1_GPL/Sources/EntitiesMP/EnemyMarker.es"
strTargetProperty = "Target";
#line 43 "D:/SE1_GPL/Sources/EntitiesMP/EnemyMarker.es"
return TRUE ;
#line 44 "D:/SE1_GPL/Sources/EntitiesMP/EnemyMarker.es"
}
#line 46 "D:/SE1_GPL/Sources/EntitiesMP/EnemyMarker.es"
BOOL CEnemyMarker::IsTargetValid(SLONG slPropertyOffset,CEntity * penTarget)
#line 47 "D:/SE1_GPL/Sources/EntitiesMP/EnemyMarker.es"
{
#line 48 "D:/SE1_GPL/Sources/EntitiesMP/EnemyMarker.es"
if(slPropertyOffset == offsetof (CMarker , m_penTarget ))
#line 49 "D:/SE1_GPL/Sources/EntitiesMP/EnemyMarker.es"
{
#line 50 "D:/SE1_GPL/Sources/EntitiesMP/EnemyMarker.es"
if(IsOfClass (penTarget , "Enemy Marker")){return TRUE ;}
#line 51 "D:/SE1_GPL/Sources/EntitiesMP/EnemyMarker.es"
else {return FALSE ;}
#line 52 "D:/SE1_GPL/Sources/EntitiesMP/EnemyMarker.es"
}
#line 53 "D:/SE1_GPL/Sources/EntitiesMP/EnemyMarker.es"
return CEntity :: IsTargetValid (slPropertyOffset , penTarget );
#line 54 "D:/SE1_GPL/Sources/EntitiesMP/EnemyMarker.es"
}
BOOL CEnemyMarker::
#line 57 "D:/SE1_GPL/Sources/EntitiesMP/EnemyMarker.es"
Main(const CEntityEvent &__eeInput) {
#undef STATE_CURRENT
#define STATE_CURRENT STATE_CEnemyMarker_Main
ASSERTMSG(__eeInput.ee_slEvent==EVENTCODE_EVoid, "CEnemyMarker::Main expects 'EVoid' as input!"); const EVoid &e = (const EVoid &)__eeInput;
#line 58 "D:/SE1_GPL/Sources/EntitiesMP/EnemyMarker.es"
InitAsEditorModel ();
#line 59 "D:/SE1_GPL/Sources/EntitiesMP/EnemyMarker.es"
SetPhysicsFlags (EPF_MODEL_IMMATERIAL );
#line 60 "D:/SE1_GPL/Sources/EntitiesMP/EnemyMarker.es"
SetCollisionFlags (ECF_IMMATERIAL );
#line 62 "D:/SE1_GPL/Sources/EntitiesMP/EnemyMarker.es"
if(m_strName == "Marker"){
#line 63 "D:/SE1_GPL/Sources/EntitiesMP/EnemyMarker.es"
m_strName = "Enemy Marker";
#line 64 "D:/SE1_GPL/Sources/EntitiesMP/EnemyMarker.es"
}
#line 67 "D:/SE1_GPL/Sources/EntitiesMP/EnemyMarker.es"
SetModel (MODEL_MARKER );
#line 68 "D:/SE1_GPL/Sources/EntitiesMP/EnemyMarker.es"
SetModelMainTexture (TEXTURE_MARKER );
#line 69 "D:/SE1_GPL/Sources/EntitiesMP/EnemyMarker.es"
Return(STATE_CURRENT,EVoid());
#line 69 "D:/SE1_GPL/Sources/EntitiesMP/EnemyMarker.es"
return TRUE; ASSERT(FALSE); return TRUE;};