Changeset 6084 for code/trunk/src/orxonox
- Timestamp:
- Nov 18, 2009, 11:13:47 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/orxonox/Test.cc
r5929 r6084 36 36 namespace orxonox 37 37 { 38 38 CreateFactory ( Test ); 39 39 40 40 SetConsoleCommand(Test, printV1, true).accessLevel(AccessLevel::User); … … 56 56 Test* Test::instance_ = 0; 57 57 58 59 58 Test::Test(BaseObject* creator) : BaseObject(creator), Synchronisable(creator) 59 { 60 60 assert(instance_==0); 61 61 instance_=this; 62 62 RegisterObject ( Test ); 63 63 setConfigValues(); 64 64 registerVariables(); 65 66 65 setSyncMode(0x3); 66 } 67 67 68 69 68 Test::~Test() 69 { 70 70 instance_=0; 71 71 } 72 72 73 74 75 73 void Test::setConfigValues() 74 { 75 SetConfigValue ( u1, 1 )/*.callback ( this, &Test::checkV1 )*/; 76 76 SetConfigValue ( u2, 2 )/*.callback ( this, &Test::checkV2 )*/; 77 77 SetConfigValue ( u3, 3 )/*.callback ( this, &Test::checkV3 )*/; … … 82 82 SetConfigValue ( s3, 3 )/*.callback ( this, &Test::checkV3 )*/; 83 83 SetConfigValue ( s4, 4 )/*.callback ( this, &Test::checkV4 )*/; 84 84 } 85 85 86 86
Note: See TracChangeset
for help on using the changeset viewer.