Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages  

triggerobj.h

Go to the documentation of this file.
00001 // ----------------------------------------------------------------------- //
00002 //
00003 // MODULE  : triggerobj.h
00004 //
00005 // PURPOSE : CTriggerObj - Definition and constants
00006 //
00007 // CREATED : 08/09/01
00008 //
00009 // (c) 2001 LithTech, Inc.  All Rights Reserved
00010 //
00011 // ----------------------------------------------------------------------- //
00012 
00013 #ifndef __TRIGGER_OBJ_H__
00014 #define __TRIGGER_OBJ_H__
00015 
00016 
00017 // Engine includes
00018 #include <ltbasedefs.h>
00019 #include <ltengineobjects.h>
00020 
00021 
00023 class LTCollisionSphere;
00024 
00025 
00027 class CTriggerObj : public BaseClass
00028 {
00029   public:
00030     // Construction / destruction
00031     CTriggerObj();
00032     ~CTriggerObj();
00033 
00034     // Overridden functions
00035 
00036     uint32      EngineMessageFn(uint32 messageID, void *pData, float fData);
00037 
00038     // Accessors
00039 
00040   private:
00041     // EngineMessageFn handlers
00042 
00043     uint32      PreCreate(void *pData, float fData);
00044     void        ObjectCreated();
00045     void        AllObjectsCreated();
00046     void        TouchNotify(LTContactInfo* info);
00047 
00048     // Other functions
00049 
00050     void        ReadProps(ObjectCreateStruct* pStruct);
00051 
00052     // Members
00053 
00054     HOBJECT     m_hTargetObj;
00055     char        m_szTargetObj[MAX_CS_FILENAME_LEN];
00056 
00057     char        m_szActivateCmd[MAX_CS_FILENAME_LEN];
00058     char        m_szDeactivateCmd[MAX_CS_FILENAME_LEN];
00059 
00060     float       m_fRadius;
00061     LTCollisionSphere*  m_pCollSphere;  // Collision sphere
00062 };
00063 
00064 
00065 #endif  // __TRIGGER_OBJ_H__

Generated on Mon Mar 4 08:42:23 2002 for Aria by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002