Changeset 3079 for code/trunk/src
- Timestamp:
- May 26, 2009, 2:28:24 AM (16 years ago)
- Location:
- code/trunk/src/orxonox
- Files:
-
- 16 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/orxonox/OrxonoxPrereqs.h
r3060 r3079 119 119 class Sublevel; 120 120 class ForceField; 121 class Attacher; 121 122 122 123 class Model; … … 145 146 class TeamBaseMatchBase; 146 147 class Destroyer; 148 149 class BaseItem; 150 class DroppedItem; 151 class EquipmentItem; 152 class ModifierPickup; 153 class PassiveItem; 154 class PickupCollection; 155 class PickupInventory; 156 class PickupSpawner; 157 class UsableItem; 158 159 class Jump; 160 class HealthUsable; 161 class PassiveItem; 147 162 148 163 class Item; -
code/trunk/src/orxonox/objects/pickup/DroppedItem.cc
r3073 r3079 1 /* 2 * ORXONOX - the hottest 3D action shooter ever to exist 3 * > www.orxonox.net < 4 * 5 * 6 * License notice: 7 * 8 * This program is free software; you can redistribute it and/or 9 * modify it under the terms of the GNU General Public License 10 * as published by the Free Software Foundation; either version 2 11 * of the License, or (at your option) any later version. 12 * 13 * This program is distributed in the hope that it will be useful, 14 * but WITHOUT ANY WARRANTY; without even the implied warranty of 15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16 * GNU General Public License for more details. 17 * 18 * You should have received a copy of the GNU General Public License 19 * along with this program; if not, write to the Free Software 20 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 21 * 22 * Author: 23 * Daniel 'Huty' Haggenmueller 24 * Co-authors: 25 * ... 26 * 27 */ 28 1 29 #include "DroppedItem.h" 2 30 … … 7 35 8 36 #include "core/CoreIncludes.h" 9 #include "core/Core.h"10 37 11 38 namespace orxonox … … 68 95 Model* model = new Model(item); 69 96 Billboard* billboard = new Billboard(item); 70 97 71 98 model->setMeshSource("sphere.mesh"); 72 99 model->setScale(3.0f); -
code/trunk/src/orxonox/objects/pickup/DroppedItem.h
r3073 r3079 43 43 namespace orxonox 44 44 { 45 class BaseItem;46 class Pawn;47 48 45 class _OrxonoxExport DroppedItem : public StaticEntity, public Tickable 49 46 { … … 66 63 { this->triggerDistance_ = distance; } 67 64 68 inline BaseItem* getItem() const 65 inline BaseItem* getItem() const 69 66 { return this->item_; } 70 67 inline void setItem(BaseItem* item) -
code/trunk/src/orxonox/objects/pickup/ModifierPickup.cc
r3073 r3079 37 37 #include "core/CoreIncludes.h" 38 38 #include "core/XMLPort.h" 39 #include "core/Core.h"40 39 41 40 #include "objects/worldentities/pawns/Pawn.h" 42 43 #include "util/Debug.h"44 41 45 42 namespace orxonox … … 110 107 this->timer_.setTimer(this->duration_, false, this, executor); 111 108 } 112 109 113 110 return true; 114 111 } … … 140 137 pawn->getPickups().removeMultiplicativeModifier((*it).first, (*it).second); 141 138 } 142 139 143 140 if (this->timer_.getRemainingTime() > 0.0f) 144 141 this->timer_.stopTimer(); -
code/trunk/src/orxonox/objects/pickup/PickupCollection.cc
r3074 r3079 40 40 41 41 #include "core/CoreIncludes.h" 42 43 #include "objects/worldentities/pawns/Pawn.h"44 42 45 43 namespace orxonox -
code/trunk/src/orxonox/objects/pickup/PickupCollection.h
r3073 r3079 41 41 #include <string> 42 42 43 #include "util/Math.h" 43 #include "util/Math.h" 44 44 45 45 #include "ModifierType.h" … … 47 47 namespace orxonox 48 48 { 49 class BaseItem;50 class EquipmentItem;51 class PassiveItem;52 class UsableItem;53 class Pawn;54 55 49 /** 56 50 @brief PickupCollection for organising items. … … 97 91 @return Returns the pawn which owns the PickupCollection. 98 92 */ 99 inline Pawn* getOwner() const 93 inline Pawn* getOwner() const 100 94 { return this->owner_; } 101 95 /** -
code/trunk/src/orxonox/objects/pickup/PickupInventory.cc
r3076 r3079 33 33 #include "UsableItem.h" 34 34 35 #include "core/CoreIncludes.h"36 35 #include "core/ConsoleCommand.h" 37 36 #include "core/input/InputManager.h" … … 50 49 namespace orxonox 51 50 { 52 orxonox::ConsoleCommand& function_PickupInventory_ToggleInventory_0 = 53 orxonox::CommandExecutor::addConsoleCommandShortcut(orxonox::createConsoleCommand(orxonox::createFunctor(&PickupInventory::toggleInventory), "toggleInventory"), true); 51 SetConsoleCommandShortcut(PickupInventory, toggleInventory); 54 52 55 53 PickupInventory* PickupInventory::pickupInventory_s = NULL; … … 83 81 } 84 82 85 83 86 84 87 85 void PickupInventory::toggleInventory() … … 303 301 304 302 void PickupInventory::createItemWindows(CEGUI::WindowManager* winMgr, const std::string& id, int x, int y) 305 { 303 { 306 304 if(!winMgr) { return; } 307 305 -
code/trunk/src/orxonox/objects/pickup/PickupInventory.h
r3073 r3079 45 45 { 46 46 // tolua_end 47 class _OrxonoxExport BaseItem;48 49 47 /** 50 48 @brief Static class for the inventory GUI window. 51 49 @author Daniel 'Huty' Haggenmueller 52 */ 50 */ 53 51 // tolua_begin 54 52 class _OrxonoxExport PickupInventory -
code/trunk/src/orxonox/objects/pickup/PickupSpawner.cc
r3073 r3079 42 42 43 43 #include "objects/worldentities/pawns/Pawn.h" 44 #include "objects/worldentities/triggers/DistanceTrigger.h"45 44 46 45 namespace orxonox -
code/trunk/src/orxonox/objects/pickup/PickupSpawner.h
r3073 r3079 37 37 #include "OrxonoxPrereqs.h" 38 38 39 #include "core/BaseObject.h"40 39 #include "objects/Tickable.h" 41 40 #include "objects/worldentities/StaticEntity.h" … … 44 43 namespace orxonox 45 44 { 46 class BaseItem;47 48 45 /** 49 46 @brief PickupSpawner. -
code/trunk/src/orxonox/objects/pickup/items/HealthImmediate.cc
r3078 r3079 38 38 #include "core/CoreIncludes.h" 39 39 #include "core/XMLPort.h" 40 #include "core/Core.h"41 40 42 41 namespace orxonox -
code/trunk/src/orxonox/objects/pickup/items/HealthImmediate.h
r3078 r3079 37 37 #include "OrxonoxPrereqs.h" 38 38 39 #include " ../PassiveItem.h"39 #include "objects/pickup/PassiveItem.h" 40 40 41 41 namespace orxonox 42 42 { 43 class Pawn;44 45 43 /** 46 44 @brief Health-item, immediatly recovers health when picked up. -
code/trunk/src/orxonox/objects/pickup/items/HealthUsable.cc
r3078 r3079 33 33 34 34 #include "HealthUsable.h" 35 #include " ../DroppedItem.h"35 #include "objects/pickup/DroppedItem.h" 36 36 37 37 #include "objects/worldentities/pawns/Pawn.h" … … 39 39 #include "core/CoreIncludes.h" 40 40 #include "core/XMLPort.h" 41 #include "core/Core.h"42 41 43 42 namespace orxonox -
code/trunk/src/orxonox/objects/pickup/items/HealthUsable.h
r3078 r3079 37 37 #include "OrxonoxPrereqs.h" 38 38 39 #include " ../UsableItem.h"39 #include "objects/pickup/UsableItem.h" 40 40 #include "util/Math.h" 41 41 42 42 namespace orxonox 43 43 { 44 class Pawn;45 46 44 /** 47 45 @brief Health-item, enables player recover health when used. -
code/trunk/src/orxonox/objects/pickup/items/Jump.cc
r3078 r3079 39 39 #include "core/CoreIncludes.h" 40 40 #include "core/XMLPort.h" 41 #include "core/Core.h"42 41 43 42 namespace orxonox -
code/trunk/src/orxonox/objects/pickup/items/Jump.h
r3078 r3079 44 44 namespace orxonox 45 45 { 46 class Pawn;47 48 46 /** 49 47 @brief Jump-item, enables player to "jump" into a direction.
Note: See TracChangeset
for help on using the changeset viewer.