Changeset 542
- Timestamp:
- Dec 16, 2007, 5:54:06 PM (17 years ago)
- Location:
- code/branches/FICN
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/FICN/bin/resources.cfg
r539 r542 15 15 FileSystem=../Media/particle 16 16 FileSystem=../Media/gui 17 #FileSystem=../Media/levels 18 #FileSystem=../Media/audio 17 19 Zip=../Media/packs/cubemap.zip 18 20 #Zip=../Media/packs/cubemapsJS.zip -
code/branches/FICN/src/orxonox/core/CMakeLists.txt
r496 r542 10 10 Error.cc 11 11 SignalHandler.cc 12 ArgReader.cc 12 13 ) 13 14 -
code/branches/FICN/src/orxonox/orxonox.cc
r541 r542 54 54 #include "objects/Tickable.h" 55 55 #include "objects/Timer.h" 56 #include "core/ArgReader.h" 56 57 #include "core/Factory.h" 57 58 … … 150 151 151 152 // scenemanager->spacehip->tick(evt.timesincelastframe); 152 if(mKeyboard->isKeyDown(OIS::KC_ESCAPE))153 cout << "maximal MouseX: " << maxMouseX << "\tminMouseX: " << minMouseX << endl;153 //if(mKeyboard->isKeyDown(OIS::KC_ESCAPE)) 154 //cout << "maximal MouseX: " << maxMouseX << "\tminMouseX: " << minMouseX << endl; 154 155 return !mKeyboard->isKeyDown(OIS::KC_ESCAPE); 155 156 } … … 161 162 if(mouseX>maxMouseX) maxMouseX = mouseX; 162 163 if(mouseX<minMouseX) minMouseX = mouseX; 163 cout << "mouseX: " << mouseX << "\tmouseY: " << mouseY << endl;164 //cout << "mouseX: " << mouseX << "\tmouseY: " << mouseY << endl; 164 165 moved = true; 165 166 return true; … … 210 211 void Orxonox::init(int argc, char **argv, std::string path) 211 212 { 212 //TODO: initialization with command line parameters213 213 //TODO: find config file (assuming executable directory) 214 214 //TODO: read config file 215 215 //TODO: give config file to Ogre 216 217 if(argc >=2 && strcmp(argv[1], "server")==0) 216 std::string mode = ""; 217 ArgReader ar = ArgReader(argc, argv); 218 ar.checkArgument("mode", mode, false); 219 ar.checkArgument("data-path", path, true); 220 if(ar.errorHandling()) die(); 221 222 if(mode == std::string("server")) 218 223 { 219 224 serverInit(path); 220 225 } 221 else if( argc >=2 && strcmp(argv[1], "client")==0)226 else if(mode == std::string("client")) 222 227 { 223 228 clientInit(path); 224 229 } 225 else if( argc >=2 && strcmp(argv[1], "presentation")==0)230 else if(mode == std::string("presentation")) 226 231 { 227 232 playableServer(path); … … 263 268 { 264 269 //TODO: destroy and destruct everything and print nice error msg 270 delete this; 265 271 } 266 272
Note: See TracChangeset
for help on using the changeset viewer.