Changeset 677 for code/branches/FICN/src/orxonox/objects
- Timestamp:
- Dec 23, 2007, 7:19:07 PM (17 years ago)
- Location:
- code/branches/FICN/src/orxonox/objects
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/FICN/src/orxonox/objects/test1.cc
r670 r677 52 52 void Test1::tick(float dt) 53 53 { 54 std::cout << "Test1: " << this << "\n";54 std::cout << "Test1: " << this << std::endl; 55 55 } 56 56 … … 72 72 void Test1::setUsefullClass1(Identifier* identifier) 73 73 { 74 std::cout << "\n";75 std::cout << "Test1: usefullClass1->isA(Class(Test1)): " << identifier->isA(Class(Test1)) << "\n";76 std::cout << "Test1: usefullClass1->isA(Class(Test2)): " << identifier->isA(Class(Test2)) << "\n";77 std::cout << "Test1: usefullClass1->isA(Class(Test3)): " << identifier->isA(Class(Test3)) << "\n";74 std::cout << std::endl; 75 std::cout << "Test1: usefullClass1->isA(Class(Test1)): " << identifier->isA(Class(Test1)) << std::endl; 76 std::cout << "Test1: usefullClass1->isA(Class(Test2)): " << identifier->isA(Class(Test2)) << std::endl; 77 std::cout << "Test1: usefullClass1->isA(Class(Test3)): " << identifier->isA(Class(Test3)) << std::endl; 78 78 this->usefullClass1_ = identifier; 79 79 } … … 81 81 void Test1::setUsefullClass2(Identifier* identifier) 82 82 { 83 std::cout << "\n";84 std::cout << "Test1: usefullClass2->isA(Class(Test1)): " << identifier->isA(Class(Test1)) << "\n";85 std::cout << "Test1: usefullClass2->isA(Class(Test2)): " << identifier->isA(Class(Test2)) << "\n";86 std::cout << "Test1: usefullClass2->isA(Class(Test3)): " << identifier->isA(Class(Test3)) << "\n";83 std::cout << std::endl; 84 std::cout << "Test1: usefullClass2->isA(Class(Test1)): " << identifier->isA(Class(Test1)) << std::endl; 85 std::cout << "Test1: usefullClass2->isA(Class(Test2)): " << identifier->isA(Class(Test2)) << std::endl; 86 std::cout << "Test1: usefullClass2->isA(Class(Test3)): " << identifier->isA(Class(Test3)) << std::endl; 87 87 this->usefullClass2_ = identifier; 88 88 } … … 90 90 void Test1::setUsefullClassOfTypeTest3(Identifier* identifier) 91 91 { 92 std::cout << "\n";93 std::cout << "Test1: usefullClass3->isA(Class(Test1)): " << identifier->isA(Class(Test1)) << "\n";94 std::cout << "Test1: usefullClass3->isA(Class(Test2)): " << identifier->isA(Class(Test2)) << "\n";95 std::cout << "Test1: usefullClass3->isA(Class(Test3)): " << identifier->isA(Class(Test3)) << "\n";92 std::cout << std::endl; 93 std::cout << "Test1: usefullClass3->isA(Class(Test1)): " << identifier->isA(Class(Test1)) << std::endl; 94 std::cout << "Test1: usefullClass3->isA(Class(Test2)): " << identifier->isA(Class(Test2)) << std::endl; 95 std::cout << "Test1: usefullClass3->isA(Class(Test3)): " << identifier->isA(Class(Test3)) << std::endl; 96 96 this->usefullClass3_ = identifier; 97 97 } -
code/branches/FICN/src/orxonox/objects/test2.cc
r670 r677 53 53 void Test2::timerFunction1() 54 54 { 55 std::cout << "Test2: 1 Sekunde \n";55 std::cout << "Test2: 1 Sekunde" << std::endl; 56 56 } 57 57 58 58 void Test2::timerFunction2() 59 59 { 60 std::cout << "Test2: 5 Sekunden \n";60 std::cout << "Test2: 5 Sekunden" << std::endl; 61 61 } 62 62 63 63 void Test2::timerFunction3() 64 64 { 65 std::cout << "Test2: 10 Sekunden sind um! \n";65 std::cout << "Test2: 10 Sekunden sind um!" << std::endl; 66 66 } 67 67 … … 83 83 void Test2::setUsefullClass1(Identifier* identifier) 84 84 { 85 std::cout << "\n";86 std::cout << "Test2: usefullClass1->isA(Class(Test1)): " << identifier->isA(Class(Test1)) << "\n";87 std::cout << "Test2: usefullClass1->isA(Class(Test2)): " << identifier->isA(Class(Test2)) << "\n";88 std::cout << "Test2: usefullClass1->isA(Class(Test3)): " << identifier->isA(Class(Test3)) << "\n";85 std::cout << std::endl; 86 std::cout << "Test2: usefullClass1->isA(Class(Test1)): " << identifier->isA(Class(Test1)) << std::endl; 87 std::cout << "Test2: usefullClass1->isA(Class(Test2)): " << identifier->isA(Class(Test2)) << std::endl; 88 std::cout << "Test2: usefullClass1->isA(Class(Test3)): " << identifier->isA(Class(Test3)) << std::endl; 89 89 this->usefullClass1_ = identifier; 90 90 } … … 92 92 void Test2::setUsefullClass2(Identifier* identifier) 93 93 { 94 std::cout << "\n";95 std::cout << "Test2: usefullClass2->isA(Class(Test1)): " << identifier->isA(Class(Test1)) << "\n";96 std::cout << "Test2: usefullClass2->isA(Class(Test2)): " << identifier->isA(Class(Test2)) << "\n";97 std::cout << "Test2: usefullClass2->isA(Class(Test3)): " << identifier->isA(Class(Test3)) << "\n";94 std::cout << std::endl; 95 std::cout << "Test2: usefullClass2->isA(Class(Test1)): " << identifier->isA(Class(Test1)) << std::endl; 96 std::cout << "Test2: usefullClass2->isA(Class(Test2)): " << identifier->isA(Class(Test2)) << std::endl; 97 std::cout << "Test2: usefullClass2->isA(Class(Test3)): " << identifier->isA(Class(Test3)) << std::endl; 98 98 this->usefullClass2_ = identifier; 99 99 } … … 101 101 void Test2::setUsefullClassOfTypeTest3(Identifier* identifier) 102 102 { 103 std::cout << "\n";104 std::cout << "Test2: usefullClass3->isA(Class(Test1)): " << identifier->isA(Class(Test1)) << "\n";105 std::cout << "Test2: usefullClass3->isA(Class(Test2)): " << identifier->isA(Class(Test2)) << "\n";106 std::cout << "Test2: usefullClass3->isA(Class(Test3)): " << identifier->isA(Class(Test3)) << "\n";103 std::cout << std::endl; 104 std::cout << "Test2: usefullClass3->isA(Class(Test1)): " << identifier->isA(Class(Test1)) << std::endl; 105 std::cout << "Test2: usefullClass3->isA(Class(Test2)): " << identifier->isA(Class(Test2)) << std::endl; 106 std::cout << "Test2: usefullClass3->isA(Class(Test3)): " << identifier->isA(Class(Test3)) << std::endl; 107 107 this->usefullClass3_ = identifier; 108 108 } -
code/branches/FICN/src/orxonox/objects/test3.cc
r670 r677 78 78 79 79 #define testandcout(code) \ 80 std::cout << #code << " " << code << "\n"80 std::cout << #code << " " << code << std::endl 81 81 82 82 void Test3::usefullClassesIsATest(Test1* test1) 83 83 { 84 std::cout << "\n";85 std::cout << "Test1: \n";84 std::cout << std::endl; 85 std::cout << "Test1:" << std::endl; 86 86 testandcout(test1->usefullClass1isA(Class(Test1))); 87 87 testandcout(test1->usefullClass1isA(Class(Test2))); 88 88 testandcout(test1->usefullClass1isA(Class(Test3))); 89 std::cout << "\n";89 std::cout << std::endl; 90 90 testandcout(test1->usefullClass2isA(Class(Test1))); 91 91 testandcout(test1->usefullClass2isA(Class(Test2))); 92 92 testandcout(test1->usefullClass2isA(Class(Test3))); 93 std::cout << "\n";93 std::cout << std::endl; 94 94 testandcout(test1->usefullClass3isA(Class(Test1))); 95 95 testandcout(test1->usefullClass3isA(Class(Test2))); … … 99 99 void Test3::usefullClassesIsATest(Test2* test2) 100 100 { 101 std::cout << "\n";102 std::cout << "Test2: \n";101 std::cout << std::endl; 102 std::cout << "Test2:" << std::endl; 103 103 testandcout(test2->usefullClass1isA(Class(Test1))); 104 104 testandcout(test2->usefullClass1isA(Class(Test2))); 105 105 testandcout(test2->usefullClass1isA(Class(Test3))); 106 std::cout << "\n";106 std::cout << std::endl; 107 107 testandcout(test2->usefullClass2isA(Class(Test1))); 108 108 testandcout(test2->usefullClass2isA(Class(Test2))); 109 109 testandcout(test2->usefullClass2isA(Class(Test3))); 110 std::cout << "\n";110 std::cout << std::endl; 111 111 testandcout(test2->usefullClass3isA(Class(Test1))); 112 112 testandcout(test2->usefullClass3isA(Class(Test2)));
Note: See TracChangeset
for help on using the changeset viewer.