123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110 |
- //***************************************************************************
- //
- // Light.h -- File contains the Explosion Object Definition
- //
- // MechCommander 2
- //
- //---------------------------------------------------------------------------//
- // Copyright (C) Microsoft Corporation. All rights reserved. //
- //===========================================================================//
- #ifndef LIGHT_H
- #define LIGHT_H
- //---------------------------------------------------------------------------
- #ifndef DCARNAGE_H
- #include "dcarnage.h"
- #endif
- #ifndef GAMEOBJ_H
- #include "gameobj.h"
- #endif
- #ifndef OBJMGR_H
- #include "objmgr.h"
- #endif
- #ifndef OBJTYPE_H
- #include "objtype.h"
- #endif
- //---------------------------------------------------------------------------
- /*
- #define NO_APPEARANCE_TYPE_FOR_EXPL 0xDCDC0003
- #define NO_APPEARANCE_FOR_EXPL 0xDCDC0004
- #define APPEARANCE_NOT_VFX_XPL 0xDCDC0005
- */
- //---------------------------------------------------------------------------
- class LightType : public ObjectType {
- public:
- bool oneShotFlag;
- float altitudeOffset;
-
- public:
- void init (void) {
- ObjectType::init();
- }
-
- LightType (void) {
- init();
- }
-
- virtual long init (FilePtr objFile, unsigned long fileSize);
- long init (FitIniFilePtr objFile);
-
- ~LightType (void) {
- destroy();
- }
-
- virtual void destroy (void);
-
- virtual GameObjectPtr createInstance (void);
-
- virtual bool handleCollision (GameObjectPtr collidee, GameObjectPtr collider);
- virtual bool handleDestruction (GameObjectPtr collidee, GameObjectPtr collider);
- };
- //---------------------------------------------------------------------------
- class Light : public GameObject {
- public:
- virtual void init (bool create);
- Light (void) : GameObject() {
- init(true);
- }
- ~Light (void) {
- destroy();
- }
- virtual void destroy (void);
-
- virtual long update (void);
- virtual void render (void);
-
- virtual void init (bool create, ObjectTypePtr _type);
- virtual long kill (void) {
- return(NO_ERR);
- }
- };
- //***************************************************************************
- #endif
|