Changeset 375 for code/branches/objecthierarchy/src/orxonox/orxonox.cc
- Timestamp:
- Dec 3, 2007, 10:02:06 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/objecthierarchy/src/orxonox/orxonox.cc
r366 r375 39 39 #include <iostream> 40 40 41 #include "../xml/xmlParser.h"42 #include "../loader/LevelLoader.h"41 //#include "../xml/xmlParser.h" 42 //#include "../loader/LevelLoader.h" 43 43 44 44 #include "core/IdentifierIncludes.h" 45 #include "objects/Tickable.h" 46 #include "objects/Timer.h" 47 45 48 #include "objects/BaseObject.h" 46 49 #include "objects/Test.h" … … 48 51 #include "objects/test2.h" 49 52 #include "objects/test3.h" 50 51 53 52 54 // some tests to see if enet works without includsion … … 106 108 void go() 107 109 { 108 /*109 110 createRoot(); 110 111 defineResources(); … … 117 118 setupCEGUI(); 118 119 createFrameListener(); 119 startRenderLoop(); 120 */ 120 121 121 122 122 #define testandcout(code) \ … … 148 148 test4 = new A3(); 149 149 */ 150 150 /* 151 151 std::cout << "Test 5\n"; 152 152 A1* test5_01 = new A1(); … … 218 218 std::cout << "ID of BaseObject: " << Class(BaseObject)->getNetworkID() << "\n"; 219 219 std::cout << "ID of Test1: " << Class(Test1)->getNetworkID() << "\n"; 220 220 */ 221 221 /* 222 222 std::cout << "\n"; … … 474 474 delete test9_06; 475 475 */ 476 476 /* 477 477 std::cout << "Test 10\n"; 478 478 Identifier* test10_01 = Class(A1B2); … … 605 605 606 606 std::cout << "13\n"; 607 607 */ 608 std::cout << "Test 11\n"; 609 /* 610 std::cout << "1\n"; 611 count = 0; for (Iterator<Tickable> it = ObjectList<Tickable>::start(); it; ++it) { count++; } 612 std::cout << "AnzahlTickable: " << count << "\n"; 613 614 Test1* test11_1; 615 for (int i = 0; i < 3; i++) 616 test11_1 = new Test1; 617 618 count = 0; for (Iterator<Tickable> it = ObjectList<Tickable>::start(); it; ++it) { count++; } 619 std::cout << "AnzahlTickable: " << count << "\n"; 620 621 for (Iterator<Tickable> it = ObjectList<Tickable>::start(); it; ++it) 622 it->tick(0); 623 624 std::cout << "2\n"; 625 */ 626 627 Test2* test11_2 = new Test2; 628 std::cout << "3\n"; 629 630 startRenderLoop(); 608 631 } 609 632 … … 687 710 { 688 711 689 string levelFile = "sp_level_moonstation.oxw";690 loader::LevelLoader* loader = new loader::LevelLoader(levelFile);712 // string levelFile = "sp_level_moonstation.oxw"; 713 // loader::LevelLoader* loader = new loader::LevelLoader(levelFile); 691 714 } 692 715 … … 735 758 void createFrameListener() 736 759 { 760 TickFrameListener* TickFL = new TickFrameListener(); 761 mRoot->addFrameListener(TickFL); 762 763 TimerFrameListener* TimerFL = new TimerFrameListener(); 764 mRoot->addFrameListener(TimerFL); 765 737 766 mListener = new OrxExitListener(mKeyboard); 738 767 mRoot->addFrameListener(mListener);
Note: See TracChangeset
for help on using the changeset viewer.