mirror of
https://github.com/ptitSeb/Serious-Engine
synced 2024-11-26 12:15:53 +01:00
95 lines
3.4 KiB
C++
95 lines
3.4 KiB
C++
|
/*
|
||
|
* This file is generated by Entity Class Compiler, (c) CroTeam 1997-98
|
||
|
*/
|
||
|
|
||
|
#line 4 "D:/SE1_GPL/Sources/EntitiesMP/Marker.es"
|
||
|
|
||
|
#include "StdH.h"
|
||
|
|
||
|
#include <EntitiesMP/Marker.h>
|
||
|
#include <EntitiesMP/Marker_tables.h>
|
||
|
void CMarker::SetDefaultProperties(void) {
|
||
|
m_strName = "Marker";
|
||
|
m_strDescription = "";
|
||
|
m_penTarget = NULL;
|
||
|
CEntity::SetDefaultProperties();
|
||
|
}
|
||
|
|
||
|
#line 28 "D:/SE1_GPL/Sources/EntitiesMP/Marker.es"
|
||
|
const CTString & CMarker::GetDescription(void)const
|
||
|
#line 29 "D:/SE1_GPL/Sources/EntitiesMP/Marker.es"
|
||
|
{
|
||
|
#line 30 "D:/SE1_GPL/Sources/EntitiesMP/Marker.es"
|
||
|
((CTString &) m_strDescription ) . PrintF ("-><none>");
|
||
|
#line 31 "D:/SE1_GPL/Sources/EntitiesMP/Marker.es"
|
||
|
if(m_penTarget != NULL ){
|
||
|
#line 32 "D:/SE1_GPL/Sources/EntitiesMP/Marker.es"
|
||
|
((CTString &) m_strDescription ) . PrintF ("->%s" , m_penTarget -> GetName ());
|
||
|
#line 33 "D:/SE1_GPL/Sources/EntitiesMP/Marker.es"
|
||
|
}
|
||
|
#line 34 "D:/SE1_GPL/Sources/EntitiesMP/Marker.es"
|
||
|
return m_strDescription ;
|
||
|
#line 35 "D:/SE1_GPL/Sources/EntitiesMP/Marker.es"
|
||
|
}
|
||
|
|
||
|
#line 38 "D:/SE1_GPL/Sources/EntitiesMP/Marker.es"
|
||
|
BOOL CMarker::MovesByTargetedRoute(CTString & strTargetProperty)const {
|
||
|
#line 39 "D:/SE1_GPL/Sources/EntitiesMP/Marker.es"
|
||
|
strTargetProperty = "Target";
|
||
|
#line 40 "D:/SE1_GPL/Sources/EntitiesMP/Marker.es"
|
||
|
return TRUE ;
|
||
|
#line 41 "D:/SE1_GPL/Sources/EntitiesMP/Marker.es"
|
||
|
}
|
||
|
|
||
|
#line 43 "D:/SE1_GPL/Sources/EntitiesMP/Marker.es"
|
||
|
BOOL CMarker::DropsMarker(CTFileName & fnmMarkerClass,CTString & strTargetProperty)const {
|
||
|
#line 44 "D:/SE1_GPL/Sources/EntitiesMP/Marker.es"
|
||
|
fnmMarkerClass = CTFILENAME ("Classes\\Marker.ecl");
|
||
|
#line 45 "D:/SE1_GPL/Sources/EntitiesMP/Marker.es"
|
||
|
strTargetProperty = "Target";
|
||
|
#line 46 "D:/SE1_GPL/Sources/EntitiesMP/Marker.es"
|
||
|
return TRUE ;
|
||
|
#line 47 "D:/SE1_GPL/Sources/EntitiesMP/Marker.es"
|
||
|
}
|
||
|
BOOL CMarker::IsMarker(void)const
|
||
|
#line 52 "D:/SE1_GPL/Sources/EntitiesMP/Marker.es"
|
||
|
{
|
||
|
#line 53 "D:/SE1_GPL/Sources/EntitiesMP/Marker.es"
|
||
|
return TRUE ;
|
||
|
#line 54 "D:/SE1_GPL/Sources/EntitiesMP/Marker.es"
|
||
|
}
|
||
|
|
||
|
#line 58 "D:/SE1_GPL/Sources/EntitiesMP/Marker.es"
|
||
|
SLONG CMarker::GetUsedMemory(void)
|
||
|
#line 59 "D:/SE1_GPL/Sources/EntitiesMP/Marker.es"
|
||
|
{
|
||
|
#line 61 "D:/SE1_GPL/Sources/EntitiesMP/Marker.es"
|
||
|
SLONG slUsedMemory = sizeof (CMarker ) - sizeof (CEntity ) + CEntity :: GetUsedMemory ();
|
||
|
#line 63 "D:/SE1_GPL/Sources/EntitiesMP/Marker.es"
|
||
|
slUsedMemory += m_strName . Length ();
|
||
|
#line 64 "D:/SE1_GPL/Sources/EntitiesMP/Marker.es"
|
||
|
slUsedMemory += m_strDescription . Length ();
|
||
|
#line 65 "D:/SE1_GPL/Sources/EntitiesMP/Marker.es"
|
||
|
return slUsedMemory ;
|
||
|
#line 66 "D:/SE1_GPL/Sources/EntitiesMP/Marker.es"
|
||
|
}
|
||
|
BOOL CMarker::
|
||
|
#line 72 "D:/SE1_GPL/Sources/EntitiesMP/Marker.es"
|
||
|
Main(const CEntityEvent &__eeInput) {
|
||
|
#undef STATE_CURRENT
|
||
|
#define STATE_CURRENT STATE_CMarker_Main
|
||
|
ASSERTMSG(__eeInput.ee_slEvent==EVENTCODE_EVoid, "CMarker::Main expects 'EVoid' as input!"); const EVoid &e = (const EVoid &)__eeInput;
|
||
|
#line 74 "D:/SE1_GPL/Sources/EntitiesMP/Marker.es"
|
||
|
InitAsEditorModel ();
|
||
|
#line 75 "D:/SE1_GPL/Sources/EntitiesMP/Marker.es"
|
||
|
SetPhysicsFlags (EPF_MODEL_IMMATERIAL );
|
||
|
#line 76 "D:/SE1_GPL/Sources/EntitiesMP/Marker.es"
|
||
|
SetCollisionFlags (ECF_IMMATERIAL );
|
||
|
#line 79 "D:/SE1_GPL/Sources/EntitiesMP/Marker.es"
|
||
|
SetModel (MODEL_MARKER );
|
||
|
#line 80 "D:/SE1_GPL/Sources/EntitiesMP/Marker.es"
|
||
|
SetModelMainTexture (TEXTURE_MARKER );
|
||
|
#line 82 "D:/SE1_GPL/Sources/EntitiesMP/Marker.es"
|
||
|
Return(STATE_CURRENT,EVoid());
|
||
|
#line 82 "D:/SE1_GPL/Sources/EntitiesMP/Marker.es"
|
||
|
return TRUE; ASSERT(FALSE); return TRUE;};
|