mirror of
https://github.com/ptitSeb/Serious-Engine
synced 2024-11-26 04:05:53 +01:00
148 lines
5.6 KiB
C
148 lines
5.6 KiB
C
|
/*
|
||
|
* This file is generated by Entity Class Compiler, (c) CroTeam 1997-98
|
||
|
*/
|
||
|
|
||
|
#ifndef _EntitiesMP_CannonBall_INCLUDED
|
||
|
#define _EntitiesMP_CannonBall_INCLUDED 1
|
||
|
#include <EntitiesMP/BasicEffects.h>
|
||
|
#include <EntitiesMP/Light.h>
|
||
|
#include <EntitiesMP/PlayerWeapons.h>
|
||
|
#include <EntitiesMP/EnemyBase.h>
|
||
|
extern DECL_DLL CEntityPropertyEnumType CannonBallType_enum;
|
||
|
enum CannonBallType {
|
||
|
CBT_IRON = 0,
|
||
|
CBT_NUKE = 1,
|
||
|
};
|
||
|
DECL_DLL inline void ClearToDefault(CannonBallType &e) { e = (CannonBallType)0; } ;
|
||
|
#define EVENTCODE_ELaunchCannonBall 0x01fa0000
|
||
|
class DECL_DLL ELaunchCannonBall : public CEntityEvent {
|
||
|
public:
|
||
|
ELaunchCannonBall();
|
||
|
CEntityEvent *MakeCopy(void);
|
||
|
CEntityPointer penLauncher;
|
||
|
enum CannonBallType cbtType;
|
||
|
FLOAT fLaunchPower;
|
||
|
FLOAT fSize;
|
||
|
};
|
||
|
DECL_DLL inline void ClearToDefault(ELaunchCannonBall &e) { e = ELaunchCannonBall(); } ;
|
||
|
#define EVENTCODE_EForceExplode 0x01fa0001
|
||
|
class DECL_DLL EForceExplode : public CEntityEvent {
|
||
|
public:
|
||
|
EForceExplode();
|
||
|
CEntityEvent *MakeCopy(void);
|
||
|
};
|
||
|
DECL_DLL inline void ClearToDefault(EForceExplode &e) { e = EForceExplode(); } ;
|
||
|
extern "C" DECL_DLL CDLLEntityClass CCannonBall_DLLClass;
|
||
|
class DECL_DLL CCannonBall : public CMovableModelEntity {
|
||
|
public:
|
||
|
virtual void SetDefaultProperties(void);
|
||
|
CEntityPointer m_penLauncher;
|
||
|
FLOAT m_fLaunchPower;
|
||
|
FLOAT m_fCannonBallSize;
|
||
|
FLOAT m_fIgnoreTime;
|
||
|
FLOAT m_fStartTime;
|
||
|
INDEX m_iNextChannel;
|
||
|
BOOL m_bSelfExploded;
|
||
|
CSoundObject m_soBounce0;
|
||
|
CSoundObject m_soBounce1;
|
||
|
CSoundObject m_soBounce2;
|
||
|
CSoundObject m_soBounce3;
|
||
|
CSoundObject m_soBounce4;
|
||
|
enum CannonBallType m_cbtType;
|
||
|
FLOAT m_tmInvisibility;
|
||
|
FLOAT m_tmExpandBox;
|
||
|
FLOAT m_tmForceExplode;
|
||
|
|
||
|
#line 130 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
||
|
void PreMoving(void);
|
||
|
|
||
|
#line 140 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
||
|
void PostMoving(void);
|
||
|
|
||
|
#line 152 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
||
|
void Read_t(CTStream * istr);
|
||
|
|
||
|
#line 170 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
||
|
BOOL AdjustShadingParameters(FLOAT3D & vLightDirection,COLOR & colLight,COLOR & colAmbient);
|
||
|
|
||
|
#line 206 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
||
|
void RenderParticles(void);
|
||
|
|
||
|
#line 221 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
||
|
void Initialize(void);
|
||
|
|
||
|
#line 255 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
||
|
FLOAT CalculateDamageToInflict(void);
|
||
|
|
||
|
#line 270 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
||
|
void Explosion(FLOAT3D vCenter,
|
||
|
#line 271 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
||
|
const FLOAT3D & vStretchExplosion,
|
||
|
#line 272 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
||
|
const FLOAT3D & vStretchShockwave,
|
||
|
#line 273 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
||
|
const FLOAT3D & vStretchStain,
|
||
|
#line 274 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
||
|
BOOL bHasExplosion,
|
||
|
#line 275 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
||
|
BOOL bHasShockWave,
|
||
|
#line 276 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
||
|
BOOL bHasStain,
|
||
|
#line 277 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
||
|
BOOL bHasLight);
|
||
|
|
||
|
#line 355 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
||
|
BOOL BallTouchExplode(CEntityPointer penHit);
|
||
|
|
||
|
#line 397 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
||
|
void RangeDamage(void);
|
||
|
|
||
|
#line 412 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
||
|
void SpawnEffect(const CPlacement3D & plEffect,const ESpawnEffect & eSpawnEffect);
|
||
|
|
||
|
#line 422 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
||
|
void BounceSound(FLOAT fSpeed);
|
||
|
#define STATE_CCannonBall_Bounce 0x01fa0002
|
||
|
BOOL
|
||
|
#line 439 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
||
|
Bounce(const CEntityEvent &__eeInput);
|
||
|
BOOL H0x01fa0003_Bounce_01(const CEntityEvent &__eeInput);
|
||
|
BOOL H0x01fa0004_Bounce_02(const CEntityEvent &__eeInput);
|
||
|
#define STATE_CCannonBall_Main 1
|
||
|
BOOL
|
||
|
#line 515 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
||
|
Main(const CEntityEvent &__eeInput);
|
||
|
BOOL H0x01fa0005_Main_01(const CEntityEvent &__eeInput);
|
||
|
BOOL H0x01fa0006_Main_02(const CEntityEvent &__eeInput);
|
||
|
BOOL H0x01fa0007_Main_03(const CEntityEvent &__eeInput);
|
||
|
BOOL H0x01fa0008_Main_04(const CEntityEvent &__eeInput);
|
||
|
BOOL H0x01fa0009_Main_05(const CEntityEvent &__eeInput);
|
||
|
BOOL H0x01fa000a_Main_06(const CEntityEvent &__eeInput);
|
||
|
BOOL H0x01fa000b_Main_07(const CEntityEvent &__eeInput);
|
||
|
BOOL H0x01fa000c_Main_08(const CEntityEvent &__eeInput);
|
||
|
BOOL H0x01fa000d_Main_09(const CEntityEvent &__eeInput);
|
||
|
BOOL H0x01fa000e_Main_10(const CEntityEvent &__eeInput);
|
||
|
BOOL H0x01fa000f_Main_11(const CEntityEvent &__eeInput);
|
||
|
BOOL H0x01fa0010_Main_12(const CEntityEvent &__eeInput);
|
||
|
BOOL H0x01fa0011_Main_13(const CEntityEvent &__eeInput);
|
||
|
BOOL H0x01fa0012_Main_14(const CEntityEvent &__eeInput);
|
||
|
BOOL H0x01fa0013_Main_15(const CEntityEvent &__eeInput);
|
||
|
BOOL H0x01fa0014_Main_16(const CEntityEvent &__eeInput);
|
||
|
BOOL H0x01fa0015_Main_17(const CEntityEvent &__eeInput);
|
||
|
BOOL H0x01fa0016_Main_18(const CEntityEvent &__eeInput);
|
||
|
BOOL H0x01fa0017_Main_19(const CEntityEvent &__eeInput);
|
||
|
BOOL H0x01fa0018_Main_20(const CEntityEvent &__eeInput);
|
||
|
BOOL H0x01fa0019_Main_21(const CEntityEvent &__eeInput);
|
||
|
BOOL H0x01fa001a_Main_22(const CEntityEvent &__eeInput);
|
||
|
BOOL H0x01fa001b_Main_23(const CEntityEvent &__eeInput);
|
||
|
BOOL H0x01fa001c_Main_24(const CEntityEvent &__eeInput);
|
||
|
BOOL H0x01fa001d_Main_25(const CEntityEvent &__eeInput);
|
||
|
BOOL H0x01fa001e_Main_26(const CEntityEvent &__eeInput);
|
||
|
BOOL H0x01fa001f_Main_27(const CEntityEvent &__eeInput);
|
||
|
BOOL H0x01fa0020_Main_28(const CEntityEvent &__eeInput);
|
||
|
BOOL H0x01fa0021_Main_29(const CEntityEvent &__eeInput);
|
||
|
BOOL H0x01fa0022_Main_30(const CEntityEvent &__eeInput);
|
||
|
BOOL H0x01fa0023_Main_31(const CEntityEvent &__eeInput);
|
||
|
};
|
||
|
#endif // _EntitiesMP_CannonBall_INCLUDED
|