Changeset 616 for code/branches/FICN/src/orxonox/objects
- Timestamp:
- Dec 18, 2007, 2:50:50 PM (17 years ago)
- Location:
- code/branches/FICN/src/orxonox/objects
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/FICN/src/orxonox/objects/BaseEntity.cc
r614 r616 40 40 } 41 41 } 42 42 43 43 void BaseEntity::registerAllVariables(){ 44 44 WorldEntity::registerAllVariables(); … … 47 47 registerVar(&node_, node_.length()+1, network::STRING); 48 48 } 49 49 50 50 bool BaseEntity::create(){ 51 51 if(!valid) … … 54 54 this->setNode(Orxonox::getSingleton()->getSceneManager()->getSceneNode(node_)); 55 55 Ogre::SceneManager* mgr = orxonox::Orxonox::getSingleton()->getSceneManager(); 56 56 57 57 Ogre::Entity* entity = mgr->createEntity(name_, mesh_); 58 58 59 59 //Ogre::MovableObject *ent = (Ogre::MovableObject *)entity; 60 60 getNode()->attachObject(entity); // big problem here: sigsegv -
code/branches/FICN/src/orxonox/objects/SceneNode.cc
r614 r616 63 63 else 64 64 nodeName_ = ""; 65 65 66 66 create(); 67 67 … … 69 69 } 70 70 } 71 71 72 72 void SceneNode::registerAllVariables(){ 73 73 registerVar(&x_, sizeof(float), network::DATA); … … 83 83 registerVar(&nodeName_, sizeof(float), network::STRING); 84 84 } 85 85 86 86 bool SceneNode::create(){ 87 87 Ogre::SceneManager* mgr = orxonox::Orxonox::getSingleton()->getSceneManager(); … … 100 100 return true; 101 101 } 102 102 103 103 } -
code/branches/FICN/src/orxonox/objects/test1.cc
r614 r616 69 69 this->usefullClass3_ = identifier; 70 70 } 71 71 72 72 void Test1::loadParams(TiXmlElement* xmlElem) 73 73 { 74 74 75 76 75 76 77 77 } 78 78 }
Note: See TracChangeset
for help on using the changeset viewer.