Changeset 1685 for code/branches/core3/src
- Timestamp:
- Aug 31, 2008, 4:44:07 AM (16 years ago)
- Location:
- code/branches/core3/src
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/core3/src/core/Identifier.h
r1684 r1685 62 62 #include "MetaObjectList.h" 63 63 #include "Iterator.h" 64 #undef SUPER_INTRUSIVE65 64 #include "Super.h" 66 65 #include "util/Debug.h" -
code/branches/core3/src/core/Super.h
r1684 r1685 251 251 //// Common code //// 252 252 253 // Dummy - only needed to cast Identifier* to ClassIdentifier<SuperDummy>* (the real class doesn't matter)254 class SuperDummy {};255 256 253 // Base template 257 254 template <int functionnumber, class T, int templatehack1, int templatehack2> -
code/branches/core3/src/orxonox/objects/BillboardProjectile.cc
r1684 r1685 48 48 this->scale(0.5); 49 49 } 50 50 /* 51 51 std::cout << "a:\n"; 52 52 SUPER(BillboardProjectile, testfunction); 53 53 std::cout << "b:\n"; 54 */ 54 55 } 55 56 -
code/branches/core3/src/orxonox/objects/BillboardProjectile.h
r1684 r1685 38 38 namespace orxonox 39 39 { 40 class TESTTESTTEST1 41 { 42 public: 43 TESTTESTTEST1() { this->setMyValue(10); } 44 45 private: 46 void setMyValue(int value) { this->value1_ = value; } 47 48 int value1_; 49 int value2_; 50 Identifier* identifier_; 51 }; 52 53 class TESTTESTTEST2 54 { 55 public: 56 TESTTESTTEST2() { this->setMyValue(10); } 57 58 private: 59 void setMyValue(int value) { this->value1_ = value; } 60 61 int value1_; 62 int value2_; 63 double value3_; 64 char value4_; 65 bool value5_; 66 Identifier* identifier1_; 67 Identifier* identifier2_; 68 }; 69 70 class TESTTESTTEST3 : virtual public TESTTESTTEST1 71 { 72 public: 73 TESTTESTTEST3() { this->setMyOtherValue(10); } 74 75 private: 76 void setMyOtherValue(int value) { this->value3_ = value; } 77 78 int value3_; 79 TESTTESTTEST2* test_; 80 }; 81 82 class _OrxonoxExport BillboardProjectile : public Projectile, public TESTTESTTEST3, public TESTTESTTEST2, virtual public TESTTESTTEST1 40 class _OrxonoxExport BillboardProjectile : public Projectile 83 41 { 84 42 public: -
code/branches/core3/src/orxonox/objects/ParticleProjectile.cc
r1684 r1685 55 55 56 56 this->setConfigValues(); 57 57 /* 58 58 std::cout << "c:\n"; 59 59 SUPER(ParticleProjectile, testfunction); … … 63 63 this->testfunction(); 64 64 std::cout << "f:\n"; 65 */ 65 66 } 66 67 -
code/branches/core3/src/orxonox/objects/ParticleProjectile.h
r1684 r1685 38 38 namespace orxonox 39 39 { 40 class TESTTESTTEST13 41 { 42 public: 43 TESTTESTTEST13() { this->setMyValue(10); } 44 45 private: 46 void setMyValue(int value) { this->value1_ = value; } 47 48 int value1_; 49 int value2_; 50 Identifier* identifier_; 51 }; 52 53 class TESTTESTTEST23 54 { 55 public: 56 TESTTESTTEST23() { this->setMyValue(10); } 57 58 private: 59 void setMyValue(int value) { this->value1_ = value; } 60 61 int value1_; 62 int value2_; 63 double value3_; 64 char value4_; 65 bool value5_; 66 Identifier* identifier1_; 67 Identifier* identifier2_; 68 }; 69 70 class TESTTESTTEST33 : virtual public TESTTESTTEST13 71 { 72 public: 73 TESTTESTTEST33() { this->setMyOtherValue(10); } 74 75 private: 76 void setMyOtherValue(int value) { this->value3_ = value; } 77 78 int value3_; 79 TESTTESTTEST23* test_; 80 }; 81 82 class _OrxonoxExport ParticleProjectile : public TESTTESTTEST33, public BillboardProjectile, virtual public TESTTESTTEST13 40 class _OrxonoxExport ParticleProjectile : public BillboardProjectile 83 41 { 84 42 public: -
code/branches/core3/src/orxonox/objects/Projectile.h
r1684 r1685 38 38 namespace orxonox 39 39 { 40 class TESTTESTTEST12 41 { 42 public: 43 TESTTESTTEST12() { this->setMyValue(10); } 44 45 private: 46 void setMyValue(int value) { this->value1_ = value; } 47 48 int value1_; 49 int value2_; 50 Identifier* identifier_; 51 }; 52 53 class TESTTESTTEST22 54 { 55 public: 56 TESTTESTTEST22() { this->setMyValue(10); } 57 58 private: 59 void setMyValue(int value) { this->value1_ = value; } 60 61 int value1_; 62 int value2_; 63 double value3_; 64 char value4_; 65 bool value5_; 66 Identifier* identifier1_; 67 Identifier* identifier2_; 68 }; 69 70 class TESTTESTTEST32 : virtual public TESTTESTTEST12 71 { 72 public: 73 TESTTESTTEST32() { this->setMyOtherValue(10); } 74 75 private: 76 void setMyOtherValue(int value) { this->value3_ = value; } 77 78 int value3_; 79 TESTTESTTEST22* test_; 80 }; 81 82 class _OrxonoxExport Projectile : public TESTTESTTEST22, public TESTTESTTEST32, virtual public TESTTESTTEST12, public WorldEntity 40 class _OrxonoxExport Projectile : public WorldEntity 83 41 { 84 42 public:
Note: See TracChangeset
for help on using the changeset viewer.