mirror of
https://github.com/ptitSeb/Serious-Engine
synced 2024-11-26 04:05:53 +01:00
87 lines
3.4 KiB
C++
87 lines
3.4 KiB
C++
|
/*
|
||
|
* This file is generated by Entity Class Compiler, (c) CroTeam 1997-98
|
||
|
*/
|
||
|
|
||
|
#line 4 "D:/SE1_GPL/Sources/EntitiesMP/CameraMarker.es"
|
||
|
|
||
|
#include "StdH.h"
|
||
|
|
||
|
#include <EntitiesMP/CameraMarker.h>
|
||
|
#include <EntitiesMP/CameraMarker_tables.h>
|
||
|
void CCameraMarker::SetDefaultProperties(void) {
|
||
|
m_fDeltaTime = 5.0f;
|
||
|
m_fBias = 0.0f;
|
||
|
m_fTension = 0.0f;
|
||
|
m_fContinuity = 0.0f;
|
||
|
m_bStopMoving = FALSE ;
|
||
|
m_fFOV = 90.0f;
|
||
|
m_bSkipToNext = FALSE ;
|
||
|
m_colFade = 0;
|
||
|
m_penTrigger = NULL;
|
||
|
m_penViewTarget = NULL;
|
||
|
m_vPosRatio = FLOAT3D(0 , 0 , 0);
|
||
|
m_fRatioX = 0.5f;
|
||
|
m_fRatioY = 0.5f;
|
||
|
m_fRatioZ = 0.5f;
|
||
|
CMarker::SetDefaultProperties();
|
||
|
}
|
||
|
|
||
|
#line 43 "D:/SE1_GPL/Sources/EntitiesMP/CameraMarker.es"
|
||
|
BOOL CCameraMarker::DropsMarker(CTFileName & fnmMarkerClass,CTString & strTargetProperty)const
|
||
|
#line 44 "D:/SE1_GPL/Sources/EntitiesMP/CameraMarker.es"
|
||
|
{
|
||
|
#line 45 "D:/SE1_GPL/Sources/EntitiesMP/CameraMarker.es"
|
||
|
fnmMarkerClass = CTFILENAME ("Classes\\CameraMarker.ecl");
|
||
|
#line 46 "D:/SE1_GPL/Sources/EntitiesMP/CameraMarker.es"
|
||
|
strTargetProperty = "Target";
|
||
|
#line 47 "D:/SE1_GPL/Sources/EntitiesMP/CameraMarker.es"
|
||
|
return TRUE ;
|
||
|
#line 48 "D:/SE1_GPL/Sources/EntitiesMP/CameraMarker.es"
|
||
|
}
|
||
|
|
||
|
#line 52 "D:/SE1_GPL/Sources/EntitiesMP/CameraMarker.es"
|
||
|
SLONG CCameraMarker::GetUsedMemory(void)
|
||
|
#line 53 "D:/SE1_GPL/Sources/EntitiesMP/CameraMarker.es"
|
||
|
{
|
||
|
#line 54 "D:/SE1_GPL/Sources/EntitiesMP/CameraMarker.es"
|
||
|
return (sizeof (CCameraMarker ) - sizeof (CMarker ) + CMarker :: GetUsedMemory ());
|
||
|
#line 55 "D:/SE1_GPL/Sources/EntitiesMP/CameraMarker.es"
|
||
|
}
|
||
|
BOOL CCameraMarker::
|
||
|
#line 61 "D:/SE1_GPL/Sources/EntitiesMP/CameraMarker.es"
|
||
|
Main(const CEntityEvent &__eeInput) {
|
||
|
#undef STATE_CURRENT
|
||
|
#define STATE_CURRENT STATE_CCameraMarker_Main
|
||
|
ASSERTMSG(__eeInput.ee_slEvent==EVENTCODE_EVoid, "CCameraMarker::Main expects 'EVoid' as input!"); const EVoid &e = (const EVoid &)__eeInput;
|
||
|
#line 64 "D:/SE1_GPL/Sources/EntitiesMP/CameraMarker.es"
|
||
|
m_fDeltaTime = ClampDn (m_fDeltaTime , 0.001f);
|
||
|
#line 65 "D:/SE1_GPL/Sources/EntitiesMP/CameraMarker.es"
|
||
|
m_fBias = Clamp (m_fBias , - 1.0f , + 1.0f);
|
||
|
#line 66 "D:/SE1_GPL/Sources/EntitiesMP/CameraMarker.es"
|
||
|
m_fTension = Clamp (m_fTension , - 1.0f , + 1.0f);
|
||
|
#line 67 "D:/SE1_GPL/Sources/EntitiesMP/CameraMarker.es"
|
||
|
m_fContinuity = Clamp (m_fContinuity , - 1.0f , + 1.0f);
|
||
|
#line 69 "D:/SE1_GPL/Sources/EntitiesMP/CameraMarker.es"
|
||
|
m_vPosRatio = FLOAT3D (m_fRatioX , m_fRatioY , m_fRatioZ );
|
||
|
#line 72 "D:/SE1_GPL/Sources/EntitiesMP/CameraMarker.es"
|
||
|
InitAsEditorModel ();
|
||
|
#line 73 "D:/SE1_GPL/Sources/EntitiesMP/CameraMarker.es"
|
||
|
SetPhysicsFlags (EPF_MODEL_IMMATERIAL );
|
||
|
#line 74 "D:/SE1_GPL/Sources/EntitiesMP/CameraMarker.es"
|
||
|
SetCollisionFlags (ECF_IMMATERIAL );
|
||
|
#line 77 "D:/SE1_GPL/Sources/EntitiesMP/CameraMarker.es"
|
||
|
SetModel (MODEL_MARKER );
|
||
|
#line 78 "D:/SE1_GPL/Sources/EntitiesMP/CameraMarker.es"
|
||
|
SetModelMainTexture (TEXTURE_MARKER );
|
||
|
#line 80 "D:/SE1_GPL/Sources/EntitiesMP/CameraMarker.es"
|
||
|
if(m_penTarget != NULL && ! IsOfClass (m_penTarget , "Camera Marker")){
|
||
|
#line 81 "D:/SE1_GPL/Sources/EntitiesMP/CameraMarker.es"
|
||
|
WarningMessage ("Entity '%s' is not of Camera Marker class!" , m_penTarget );
|
||
|
#line 82 "D:/SE1_GPL/Sources/EntitiesMP/CameraMarker.es"
|
||
|
m_penTarget = NULL ;
|
||
|
#line 83 "D:/SE1_GPL/Sources/EntitiesMP/CameraMarker.es"
|
||
|
}
|
||
|
#line 85 "D:/SE1_GPL/Sources/EntitiesMP/CameraMarker.es"
|
||
|
Return(STATE_CURRENT,EVoid());
|
||
|
#line 85 "D:/SE1_GPL/Sources/EntitiesMP/CameraMarker.es"
|
||
|
return TRUE; ASSERT(FALSE); return TRUE;};
|