Changeset 667 for code/branches/FICN/src/orxonox/objects/test3.cc
- Timestamp:
- Dec 22, 2007, 2:13:18 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/FICN/src/orxonox/objects/test3.cc
r496 r667 16 16 void Test3::setConfigValues() 17 17 { 18 SetConfigValue(value_int_, -100); 19 SetConfigValue(value_double_, 10.555678); 20 SetConfigValue(value_bool_, true); 21 SetConfigValue(value_string_, "Dies ist ein Test"); 18 SetConfigValue(value_int_, 1); 19 SetConfigValue(value_uint_, 1); 20 SetConfigValue(value_char_, 1); 21 SetConfigValue(value_uchar_, 1); 22 SetConfigValue(value_float_, 1); 23 SetConfigValue(value_double_, 1); 24 SetConfigValue(value_bool_, 1); 25 SetConfigValue(value_string_, "This is a test"); 26 SetConfigValue(value_constchar_, "This is another test"); 22 27 SetConfigValue(value_vector2_, Vector2(101, 202)); 23 28 SetConfigValue(value_vector3_, Vector3(13, 26, 39)); … … 29 34 } 30 35 31 #include <fstream>32 36 void Test3::configOutput() 33 37 { 34 38 std::cout << this->value_int_ << std::endl; 39 std::cout << this->value_uint_ << std::endl; 40 std::cout << (int)this->value_char_ << std::endl; 41 std::cout << (int)this->value_uchar_ << std::endl; 42 std::cout << this->value_float_ << std::endl; 35 43 std::cout << this->value_double_ << std::endl; 36 44 std::cout << this->value_bool_ << std::endl; 37 45 std::cout << this->value_string_ << std::endl; 46 std::cout << this->value_constchar_ << std::endl; 38 47 std::cout << this->value_vector2_ << std::endl; 39 48 std::cout << this->value_vector3_ << std::endl; … … 41 50 } 42 51 43 44 52 #define testandcout(code) \ 53 std::cout << #code << " " << code << "\n" 45 54 46 55 void Test3::usefullClassesIsATest(Test1* test1)
Note: See TracChangeset
for help on using the changeset viewer.