Changeset 2917
- Timestamp:
- Apr 15, 2009, 5:03:58 PM (16 years ago)
- Location:
- code/branches/pickups2
- Files:
-
- 9 deleted
- 88 edited
- 19 copied
Legend:
- Unmodified
- Added
- Removed
-
code/branches/pickups2
- Property svn:mergeinfo changed
/code/branches/pickups merged: 2828,2831,2864,2900 -
Property
svn:ignore
set to
build
dependencies
- Property svn:mergeinfo changed
-
code/branches/pickups2/bin/client1.bat.in
- Property svn:mergeinfo changed (with no actual effect on merging)
-
code/branches/pickups2/bin/client2.bat.in
- Property svn:mergeinfo changed (with no actual effect on merging)
-
code/branches/pickups2/bin/dedicated.bat.in
- Property svn:mergeinfo changed (with no actual effect on merging)
-
code/branches/pickups2/bin/run.bat.in
- Property svn:mergeinfo changed (with no actual effect on merging)
-
code/branches/pickups2/bin/server.bat.in
- Property svn:mergeinfo changed (with no actual effect on merging)
-
code/branches/pickups2/bin/standalone.bat.in
- Property svn:mergeinfo changed (with no actual effect on merging)
-
code/branches/pickups2/cmake/FindDirectX.cmake
- Property svn:mergeinfo changed (with no actual effect on merging)
-
code/branches/pickups2/cmake/LibraryConfigTardis.cmake
- Property svn:mergeinfo changed (with no actual effect on merging)
-
code/branches/pickups2/src/core/LuaBind.cc
- Property svn:mergeinfo changed (with no actual effect on merging)
-
code/branches/pickups2/src/core/LuaBind.h
- Property svn:mergeinfo changed (with no actual effect on merging)
-
code/branches/pickups2/src/core/Template.cc
- Property svn:mergeinfo changed (with no actual effect on merging)
-
code/branches/pickups2/src/core/Template.h
- Property svn:mergeinfo changed (with no actual effect on merging)
-
code/branches/pickups2/src/core/XMLFile.h
- Property svn:mergeinfo changed (with no actual effect on merging)
-
code/branches/pickups2/src/core/XMLIncludes.h
- Property svn:mergeinfo changed (with no actual effect on merging)
-
code/branches/pickups2/src/cpptcl/cpptcl.cc
- Property svn:mergeinfo changed (with no actual effect on merging)
-
code/branches/pickups2/src/cpptcl/cpptcl.h
- Property svn:mergeinfo changed (with no actual effect on merging)
-
code/branches/pickups2/src/network/synchronisable/NetworkCallback.h
- Property svn:mergeinfo changed (with no actual effect on merging)
-
code/branches/pickups2/src/network/synchronisable/Synchronisable.cc
- Property svn:mergeinfo changed (with no actual effect on merging)
-
code/branches/pickups2/src/network/synchronisable/Synchronisable.h
- Property svn:mergeinfo changed (with no actual effect on merging)
-
code/branches/pickups2/src/orxonox/CameraManager.cc
- Property svn:mergeinfo changed (with no actual effect on merging)
-
code/branches/pickups2/src/orxonox/CameraManager.h
- Property svn:mergeinfo changed (with no actual effect on merging)
-
code/branches/pickups2/src/orxonox/objects/Level.cc
- Property svn:mergeinfo changed (with no actual effect on merging)
-
code/branches/pickups2/src/orxonox/objects/Level.h
- Property svn:mergeinfo changed (with no actual effect on merging)
-
code/branches/pickups2/src/orxonox/objects/collisionshapes
- Property svn:mergeinfo changed (with no actual effect on merging)
-
code/branches/pickups2/src/orxonox/objects/controllers/HumanController.cc
r2872 r2917 49 49 SetConsoleCommand(HumanController, boost, true).keybindMode(KeybindMode::OnHold); 50 50 SetConsoleCommand(HumanController, greet, true); 51 SetConsoleCommand(HumanController, use, true);52 51 SetConsoleCommand(HumanController, switchCamera, true); 53 52 SetConsoleCommand(HumanController, mouseLook, true); … … 56 55 SetConsoleCommand(HumanController, killBots, true).defaultValues(0); 57 56 SetConsoleCommand(HumanController, dropItems, true); 57 SetConsoleCommand(HumanController, useItem, true); 58 58 59 59 CreateUnloadableFactory(HumanController); … … 133 133 } 134 134 135 void HumanController::use()136 {137 if (HumanController::localController_s && HumanController::localController_s->controllableEntity_)138 HumanController::localController_s->controllableEntity_->use();139 }140 141 135 void HumanController::switchCamera() 142 136 { … … 163 157 } 164 158 159 void HumanController::useItem() 160 { 161 if (HumanController::localController_s && HumanController::localController_s->controllableEntity_) 162 HumanController::localController_s->controllableEntity_->useItem(); 163 } 164 165 165 void HumanController::addBots(unsigned int amount) 166 166 { -
code/branches/pickups2/src/orxonox/objects/controllers/HumanController.h
r2662 r2917 56 56 static void boost(); 57 57 static void greet(); 58 static void use();59 58 static void switchCamera(); 60 59 static void mouseLook(); 61 60 static void dropItems(); 61 static void useItem(); 62 62 63 63 static void suicide(); -
code/branches/pickups2/src/orxonox/objects/gametypes/TeamDeathmatch.cc
- Property svn:mergeinfo changed (with no actual effect on merging)
-
code/branches/pickups2/src/orxonox/objects/gametypes/TeamDeathmatch.h
- Property svn:mergeinfo changed (with no actual effect on merging)
-
code/branches/pickups2/src/orxonox/objects/items/Engine.cc
r2662 r2917 192 192 } 193 193 194 this->ship_->setAcceleration(this->ship_->get Orientation() * acceleration);194 this->ship_->setAcceleration(this->ship_->getPickups().processModifiers(ModifierType::Acceleration, this->ship_->getOrientation() * acceleration, false)); 195 195 196 196 if (!this->ship_->getPermanentBoost()) -
code/branches/pickups2/src/orxonox/objects/pickup/BaseItem.cc
- Property svn:eol-style set to native
-
code/branches/pickups2/src/orxonox/objects/pickup/BaseItem.h
- Property svn:eol-style set to native
-
code/branches/pickups2/src/orxonox/objects/pickup/CMakeLists.txt
r2710 r2917 1 1 ADD_SOURCE_FILES(ORXONOX_SRC_FILES 2 BaseItem.cc 3 DroppedItem.cc 4 EquipmentItem.cc 5 Jump.cc 6 ModifierPickup.cc 7 PassiveItem.cc 8 PickupCollection.cc 2 9 PickupSpawner.cc 3 BaseItem.cc 4 Turbo.cc 5 ShipEquipment.cc 10 UsableItem.cc 6 11 ) -
code/branches/pickups2/src/orxonox/objects/pickup/DroppedItem.cc
- Property svn:eol-style set to native
-
code/branches/pickups2/src/orxonox/objects/pickup/DroppedItem.h
- Property svn:eol-style set to native
-
code/branches/pickups2/src/orxonox/objects/pickup/EquipmentItem.cc
- Property svn:eol-style set to native
-
code/branches/pickups2/src/orxonox/objects/pickup/EquipmentItem.h
- Property svn:eol-style set to native
-
code/branches/pickups2/src/orxonox/objects/pickup/Jump.cc
- Property svn:eol-style set to native
-
code/branches/pickups2/src/orxonox/objects/pickup/Jump.h
- Property svn:eol-style set to native
-
code/branches/pickups2/src/orxonox/objects/pickup/ModifierPickup.cc
- Property svn:eol-style set to native
-
code/branches/pickups2/src/orxonox/objects/pickup/ModifierPickup.h
- Property svn:eol-style set to native
-
code/branches/pickups2/src/orxonox/objects/pickup/ModifierType.h
- Property svn:eol-style set to native
-
code/branches/pickups2/src/orxonox/objects/pickup/PassiveItem.cc
- Property svn:eol-style set to native
-
code/branches/pickups2/src/orxonox/objects/pickup/PassiveItem.h
- Property svn:eol-style set to native
-
code/branches/pickups2/src/orxonox/objects/pickup/PickupCollection.cc
- Property svn:eol-style set to native
-
code/branches/pickups2/src/orxonox/objects/pickup/PickupCollection.h
- Property svn:eol-style set to native
-
code/branches/pickups2/src/orxonox/objects/pickup/PickupSpawner.cc
- Property svn:eol-style set to native
-
code/branches/pickups2/src/orxonox/objects/pickup/PickupSpawner.h
- Property svn:eol-style set to native
-
code/branches/pickups2/src/orxonox/objects/pickup/UsableItem.cc
- Property svn:eol-style set to native
-
code/branches/pickups2/src/orxonox/objects/pickup/UsableItem.h
- Property svn:eol-style set to native
-
code/branches/pickups2/src/orxonox/objects/quest/AddQuest.cc
- Property svn:mergeinfo changed (with no actual effect on merging)
-
code/branches/pickups2/src/orxonox/objects/quest/AddQuest.h
- Property svn:mergeinfo changed (with no actual effect on merging)
-
code/branches/pickups2/src/orxonox/objects/quest/AddQuestHint.cc
- Property svn:mergeinfo changed (with no actual effect on merging)
-
code/branches/pickups2/src/orxonox/objects/quest/AddQuestHint.h
- Property svn:mergeinfo changed (with no actual effect on merging)
-
code/branches/pickups2/src/orxonox/objects/quest/AddReward.cc
- Property svn:mergeinfo changed (with no actual effect on merging)
-
code/branches/pickups2/src/orxonox/objects/quest/AddReward.h
- Property svn:mergeinfo changed (with no actual effect on merging)
-
code/branches/pickups2/src/orxonox/objects/quest/ChangeQuestStatus.cc
- Property svn:mergeinfo changed (with no actual effect on merging)
-
code/branches/pickups2/src/orxonox/objects/quest/ChangeQuestStatus.h
- Property svn:mergeinfo changed (with no actual effect on merging)
-
code/branches/pickups2/src/orxonox/objects/quest/CompleteQuest.cc
- Property svn:mergeinfo changed (with no actual effect on merging)
-
code/branches/pickups2/src/orxonox/objects/quest/CompleteQuest.h
- Property svn:mergeinfo changed (with no actual effect on merging)
-
code/branches/pickups2/src/orxonox/objects/quest/FailQuest.cc
- Property svn:mergeinfo changed (with no actual effect on merging)
-
code/branches/pickups2/src/orxonox/objects/quest/FailQuest.h
- Property svn:mergeinfo changed (with no actual effect on merging)
-
code/branches/pickups2/src/orxonox/objects/quest/GlobalQuest.cc
- Property svn:mergeinfo changed (with no actual effect on merging)
-
code/branches/pickups2/src/orxonox/objects/quest/GlobalQuest.h
- Property svn:mergeinfo changed (with no actual effect on merging)
-
code/branches/pickups2/src/orxonox/objects/quest/LocalQuest.cc
- Property svn:mergeinfo changed (with no actual effect on merging)
-
code/branches/pickups2/src/orxonox/objects/quest/LocalQuest.h
- Property svn:mergeinfo changed (with no actual effect on merging)
-
code/branches/pickups2/src/orxonox/objects/quest/Quest.cc
- Property svn:mergeinfo changed (with no actual effect on merging)
-
code/branches/pickups2/src/orxonox/objects/quest/Quest.h
- Property svn:mergeinfo changed (with no actual effect on merging)
-
code/branches/pickups2/src/orxonox/objects/quest/QuestDescription.cc
- Property svn:mergeinfo changed (with no actual effect on merging)
-
code/branches/pickups2/src/orxonox/objects/quest/QuestDescription.h
- Property svn:mergeinfo changed (with no actual effect on merging)
-
code/branches/pickups2/src/orxonox/objects/quest/QuestEffect.cc
- Property svn:mergeinfo changed (with no actual effect on merging)
-
code/branches/pickups2/src/orxonox/objects/quest/QuestEffect.h
- Property svn:mergeinfo changed (with no actual effect on merging)
-
code/branches/pickups2/src/orxonox/objects/quest/QuestHint.cc
- Property svn:mergeinfo changed (with no actual effect on merging)
-
code/branches/pickups2/src/orxonox/objects/quest/QuestHint.h
- Property svn:mergeinfo changed (with no actual effect on merging)
-
code/branches/pickups2/src/orxonox/objects/quest/QuestItem.cc
- Property svn:mergeinfo changed (with no actual effect on merging)
-
code/branches/pickups2/src/orxonox/objects/quest/QuestItem.h
- Property svn:mergeinfo changed (with no actual effect on merging)
-
code/branches/pickups2/src/orxonox/objects/quest/QuestManager.cc
- Property svn:mergeinfo changed (with no actual effect on merging)
-
code/branches/pickups2/src/orxonox/objects/quest/QuestManager.h
- Property svn:mergeinfo changed (with no actual effect on merging)
-
code/branches/pickups2/src/orxonox/objects/quest/Rewardable.cc
- Property svn:mergeinfo changed (with no actual effect on merging)
-
code/branches/pickups2/src/orxonox/objects/quest/Rewardable.h
- Property svn:mergeinfo changed (with no actual effect on merging)
-
code/branches/pickups2/src/orxonox/objects/weaponSystem/WeaponSystem.cc
- Property svn:mergeinfo changed (with no actual effect on merging)
-
code/branches/pickups2/src/orxonox/objects/weaponSystem/WeaponSystem.h
- Property svn:mergeinfo changed (with no actual effect on merging)
-
code/branches/pickups2/src/orxonox/objects/weaponSystem/projectiles/Projectile.cc
r2896 r2917 124 124 125 125 Pawn* victim = dynamic_cast<Pawn*>(otherObject); 126 127 float dmg = this->damage_; 128 if (this->owner_) 129 dmg = this->owner_->getPickups().processModifiers(ModifierType::Damage, dmg, false); 130 126 131 if (victim) 127 victim->damage( this->damage_, this->owner_);132 victim->damage(dmg, this->owner_); 128 133 } 129 134 return false; -
code/branches/pickups2/src/orxonox/objects/worldentities/Backlight.cc
- Property svn:mergeinfo changed (with no actual effect on merging)
-
code/branches/pickups2/src/orxonox/objects/worldentities/Backlight.h
- Property svn:mergeinfo changed (with no actual effect on merging)
-
code/branches/pickups2/src/orxonox/objects/worldentities/Camera.cc
- Property svn:mergeinfo changed (with no actual effect on merging)
-
code/branches/pickups2/src/orxonox/objects/worldentities/Camera.h
- Property svn:mergeinfo changed (with no actual effect on merging)
-
code/branches/pickups2/src/orxonox/objects/worldentities/ControllableEntity.h
r2851 r2917 88 88 virtual void boost() {} 89 89 virtual void greet() {} 90 virtual void use () {}90 virtual void useItem() {} 91 91 virtual void dropItems() {} 92 92 virtual void switchCamera(); -
code/branches/pickups2/src/orxonox/objects/worldentities/MobileEntity.cc
- Property svn:mergeinfo changed (with no actual effect on merging)
-
code/branches/pickups2/src/orxonox/objects/worldentities/MobileEntity.h
- Property svn:mergeinfo changed (with no actual effect on merging)
-
code/branches/pickups2/src/orxonox/objects/worldentities/ParticleSpawner.cc
- Property svn:mergeinfo changed (with no actual effect on merging)
-
code/branches/pickups2/src/orxonox/objects/worldentities/ParticleSpawner.h
- Property svn:mergeinfo changed (with no actual effect on merging)
-
code/branches/pickups2/src/orxonox/objects/worldentities/StaticEntity.cc
- Property svn:mergeinfo changed (with no actual effect on merging)
-
code/branches/pickups2/src/orxonox/objects/worldentities/StaticEntity.h
- Property svn:mergeinfo changed (with no actual effect on merging)
-
code/branches/pickups2/src/orxonox/objects/worldentities/pawns/Pawn.cc
r2904 r2917 61 61 this->spawnparticleduration_ = 3.0f; 62 62 63 this->getPick Up().setPlayer(this);63 this->getPickups().setOwner(this); 64 64 65 65 if (GameMode::isMaster()) … … 205 205 this->setDestroyWhenPlayerLeft(false); 206 206 207 this->dropItems(); 208 207 209 if (this->getGametype()) 208 210 this->getGametype()->pawnKilled(this, this->lastHitOriginator_); … … 266 268 void Pawn::dropItems() 267 269 { 268 pickUp.eraseAll();270 this->getPickups().clear(); 269 271 } 270 272 -
code/branches/pickups2/src/orxonox/objects/worldentities/pawns/Pawn.h
r2826 r2917 31 31 32 32 #include "OrxonoxPrereqs.h" 33 #include "objects/pickup/ShipEquipment.h"34 33 #include "objects/worldentities/ControllableEntity.h" 35 34 #include "objects/RadarViewable.h" 36 35 #include "objects/weaponSystem/WeaponSystem.h" 36 #include "objects/pickup/PickupCollection.h" 37 37 38 38 namespace orxonox … … 107 107 { return this->numexplosionchunks_; } 108 108 109 inline ShipEquipment& getPickUp()110 {return this->pickUp;}111 112 109 virtual void dropItems(); 110 inline PickupCollection& getPickups() 111 { return this->pickups_; } 112 virtual void useItem() 113 { this->pickups_.useItem(); } 113 114 114 115 protected: … … 117 118 virtual void spawneffect(); 118 119 119 ShipEquipment pickUp;120 120 bool bAlive_; 121 121 122 PickupCollection pickups_; 122 123 123 124 float health_; -
code/branches/pickups2/src/orxonox/objects/worldentities/triggers/DistanceTrigger.cc
- Property svn:mergeinfo changed (with no actual effect on merging)
-
code/branches/pickups2/src/orxonox/objects/worldentities/triggers/DistanceTrigger.h
- Property svn:mergeinfo changed (with no actual effect on merging)
-
code/branches/pickups2/src/orxonox/objects/worldentities/triggers/Trigger.cc
- Property svn:mergeinfo changed (with no actual effect on merging)
-
code/branches/pickups2/src/orxonox/objects/worldentities/triggers/Trigger.h
- Property svn:mergeinfo changed (with no actual effect on merging)
-
code/branches/pickups2/src/tolua/all-5.0.lua
- Property svn:mergeinfo changed (with no actual effect on merging)
-
code/branches/pickups2/src/tolua/all-5.1.lua
- Property svn:mergeinfo changed (with no actual effect on merging)
-
code/branches/pickups2/src/util
- Property svn:mergeinfo changed (with no actual effect on merging)
-
code/branches/pickups2/src/util/Exception.cc
- Property svn:mergeinfo changed (with no actual effect on merging)
-
code/branches/pickups2/src/util/Exception.h
- Property svn:mergeinfo changed (with no actual effect on merging)
-
code/branches/pickups2/src/util/SignalHandler.cc
- Property svn:mergeinfo changed (with no actual effect on merging)
-
code/branches/pickups2/src/util/SignalHandler.h
- Property svn:mergeinfo changed (with no actual effect on merging)
Note: See TracChangeset
for help on using the changeset viewer.