- Timestamp:
- 05/30/04 03:57:26 (21 years ago)
- Location:
- ps/trunk/source/simulation
- Files:
-
- 4 edited
-
BaseEntity.cpp (modified) (2 diffs)
-
BaseEntity.h (modified) (1 diff)
-
BaseEntityCollection.cpp (modified) (1 diff)
-
EntityManager.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
ps/trunk/source/simulation/BaseEntity.cpp
r284 r325 15 15 // automatically use namespace .. 16 16 XERCES_CPP_NAMESPACE_USE 17 18 CBaseEntity::~CBaseEntity() 19 { 20 if( m_bound_box ) 21 delete( m_bound_box ); 22 if( m_bound_circle ) 23 delete( m_bound_circle ); 24 } 17 25 18 26 bool CBaseEntity::loadXML( CStr filename ) … … 127 135 128 136 } 129 137 delete errorHandler; 130 138 delete parser; 131 139 } -
ps/trunk/source/simulation/BaseEntity.h
r284 r325 29 29 public: 30 30 CBaseEntity() { m_bound_circle = NULL; m_bound_box = NULL; } 31 ~CBaseEntity(); 31 32 // Load from XML 32 33 bool loadXML( CStr filename ); -
ps/trunk/source/simulation/BaseEntityCollection.cpp
r308 r325 32 32 dude->m_speed *= 10.0f; 33 33 34 /*35 36 // Nasty evil wicked hardcoding.37 CBaseEntity dude;38 dude.m_name = CStr( "Prometheus Dude" );39 dude.m_actorObject = g_ObjMan.FindObject( "The Dude" );40 dude.m_actorObject->m_Model->GetAnimation()->m_FrameTime /= 3.0f;41 dude.speed = 0.3f;42 43 addTemplate( dude );44 */45 34 } 46 35 -
ps/trunk/source/simulation/EntityManager.cpp
r284 r325 10 10 11 11 CEntityManager::~CEntityManager() 12 { 12 { 13 13 m_extant = false; 14 for( int i = 0; i < MAX_HANDLES; i++ ) 15 if( m_entities[i].m_refcount ) 16 delete( m_entities[i].m_entity ); 14 17 } 15 18
Note:
See TracChangeset
for help on using the changeset viewer.
