Changeset 10238 in orxonox.OLD for branches/camera/src/world_entities/test_entity.cc
- Timestamp:
- Jan 16, 2007, 7:55:24 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/camera/src/world_entities/test_entity.cc
r10236 r10238 26 26 27 27 #include "state.h" 28 29 28 #include "shell_command.h" 29 #include "game_world_data.h" 30 30 31 31 #include "class_id_DEPRECATED.h" … … 43 43 } 44 44 45 46 SHELL_COMMAND(test, TestEntity,test); 47 SHELL_COMMAND(t2, TestEntity,t2); 48 SHELL_COMMAND(t3, TestEntity,t3); 49 SHELL_COMMAND(t4, TestEntity, t4); 50 SHELL_COMMAND(t5, TestEntity,t5); 45 51 46 52 /** … … 70 76 this->registerObject(this, TestEntity::_objectList); 71 77 this->toList(OM_GROUP_00); 72 CM= new cameraman(); 73 test(); 78 74 79 } 75 80 76 81 void TestEntity::test() 77 82 { 78 CM ->moveCurrCam(-200, 0, 0);83 CM= new cameraman(); 79 84 CM->createCam(); 80 CM->moveCam(0, -200, 0, 1); 85 //CM->moveCurrCam(-300, 0, 0); 86 CM->moveCam(-300, 0, 0, 0); 87 } 88 89 void TestEntity::t2() 90 { 91 CM->moveCurrCam(+600, 0, 0); 92 93 } 94 95 void TestEntity::t3() 96 { 97 98 CM->setCam(1); 99 } 100 101 void TestEntity::t4() 102 { 103 CM->moveCurrCam(-500,0,0); 104 } 105 106 void TestEntity::t5() 107 { 108 CM->setCam(0); 81 109 } 82 110
Note: See TracChangeset
for help on using the changeset viewer.