Changeset 667 for code/branches/FICN/src/orxonox/objects
- Timestamp:
- Dec 22, 2007, 2:13:18 AM (17 years ago)
- Location:
- code/branches/FICN/src/orxonox/objects
- Files:
-
- 2 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) -
code/branches/FICN/src/orxonox/objects/test3.h
r496 r667 24 24 private: 25 25 int value_int_; 26 unsigned int value_uint_; 27 char value_char_; 28 unsigned char value_uchar_; 29 float value_float_; 26 30 double value_double_; 27 31 bool value_bool_; 28 32 std::string value_string_; 33 const char* value_constchar_; 29 34 Vector2 value_vector2_; 30 35 Vector3 value_vector3_;
Note: See TracChangeset
for help on using the changeset viewer.