Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 26, 2009, 2:28:24 AM (16 years ago)
Author:
landauf
Message:

Added forward declarations to OrxonoxPrereqs.h.

Location:
code/trunk/src/orxonox/objects/pickup
Files:
15 edited

Legend:

Unmodified
Added
Removed
  • 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
    129#include "DroppedItem.h"
    230
     
    735
    836#include "core/CoreIncludes.h"
    9 #include "core/Core.h"
    1037
    1138namespace orxonox
     
    6895        Model* model = new Model(item);
    6996        Billboard* billboard = new Billboard(item);
    70        
     97
    7198        model->setMeshSource("sphere.mesh");
    7299        model->setScale(3.0f);
  • code/trunk/src/orxonox/objects/pickup/DroppedItem.h

    r3073 r3079  
    4343namespace orxonox
    4444{
    45     class BaseItem;
    46     class Pawn;
    47 
    4845    class _OrxonoxExport DroppedItem : public StaticEntity, public Tickable
    4946    {
     
    6663            { this->triggerDistance_ = distance; }
    6764
    68         inline BaseItem* getItem() const 
     65        inline BaseItem* getItem() const
    6966            { return this->item_; }
    7067        inline void setItem(BaseItem* item)
  • code/trunk/src/orxonox/objects/pickup/ModifierPickup.cc

    r3073 r3079  
    3737#include "core/CoreIncludes.h"
    3838#include "core/XMLPort.h"
    39 #include "core/Core.h"
    4039
    4140#include "objects/worldentities/pawns/Pawn.h"
    42 
    43 #include "util/Debug.h"
    4441
    4542namespace orxonox
     
    110107                this->timer_.setTimer(this->duration_, false, this, executor);
    111108            }
    112            
     109
    113110            return true;
    114111        }
     
    140137                pawn->getPickups().removeMultiplicativeModifier((*it).first, (*it).second);
    141138            }
    142            
     139
    143140            if (this->timer_.getRemainingTime() > 0.0f)
    144141                this->timer_.stopTimer();
  • code/trunk/src/orxonox/objects/pickup/PickupCollection.cc

    r3074 r3079  
    4040
    4141#include "core/CoreIncludes.h"
    42 
    43 #include "objects/worldentities/pawns/Pawn.h"
    4442
    4543namespace orxonox
  • code/trunk/src/orxonox/objects/pickup/PickupCollection.h

    r3073 r3079  
    4141#include <string>
    4242
    43 #include "util/Math.h" 
     43#include "util/Math.h"
    4444
    4545#include "ModifierType.h"
     
    4747namespace orxonox
    4848{
    49     class BaseItem;
    50     class EquipmentItem;
    51     class PassiveItem;
    52     class UsableItem;
    53     class Pawn;
    54 
    5549    /**
    5650        @brief PickupCollection for organising items.
     
    9791            @return Returns the pawn which owns the PickupCollection.
    9892        */
    99         inline Pawn* getOwner() const 
     93        inline Pawn* getOwner() const
    10094            { return this->owner_; }
    10195        /**
  • code/trunk/src/orxonox/objects/pickup/PickupInventory.cc

    r3076 r3079  
    3333#include "UsableItem.h"
    3434
    35 #include "core/CoreIncludes.h"
    3635#include "core/ConsoleCommand.h"
    3736#include "core/input/InputManager.h"
     
    5049namespace orxonox
    5150{
    52     orxonox::ConsoleCommand& function_PickupInventory_ToggleInventory_0 =
    53         orxonox::CommandExecutor::addConsoleCommandShortcut(orxonox::createConsoleCommand(orxonox::createFunctor(&PickupInventory::toggleInventory), "toggleInventory"), true);
     51    SetConsoleCommandShortcut(PickupInventory, toggleInventory);
    5452
    5553    PickupInventory* PickupInventory::pickupInventory_s = NULL;
     
    8381    }
    8482
    85    
     83
    8684
    8785    void PickupInventory::toggleInventory()
     
    303301
    304302    void PickupInventory::createItemWindows(CEGUI::WindowManager* winMgr, const std::string& id, int x, int y)
    305     { 
     303    {
    306304        if(!winMgr) { return; }
    307305
  • code/trunk/src/orxonox/objects/pickup/PickupInventory.h

    r3073 r3079  
    4545{
    4646// tolua_end
    47     class _OrxonoxExport BaseItem;
    48 
    4947    /**
    5048        @brief Static class for the inventory GUI window.
    5149        @author Daniel 'Huty' Haggenmueller
    52     */ 
     50    */
    5351// tolua_begin
    5452    class _OrxonoxExport PickupInventory
  • code/trunk/src/orxonox/objects/pickup/PickupSpawner.cc

    r3073 r3079  
    4242
    4343#include "objects/worldentities/pawns/Pawn.h"
    44 #include "objects/worldentities/triggers/DistanceTrigger.h"
    4544
    4645namespace orxonox
  • code/trunk/src/orxonox/objects/pickup/PickupSpawner.h

    r3073 r3079  
    3737#include "OrxonoxPrereqs.h"
    3838
    39 #include "core/BaseObject.h"
    4039#include "objects/Tickable.h"
    4140#include "objects/worldentities/StaticEntity.h"
     
    4443namespace orxonox
    4544{
    46     class BaseItem;
    47 
    4845    /**
    4946        @brief PickupSpawner.
  • code/trunk/src/orxonox/objects/pickup/items/HealthImmediate.cc

    r3078 r3079  
    3838#include "core/CoreIncludes.h"
    3939#include "core/XMLPort.h"
    40 #include "core/Core.h"
    4140
    4241namespace orxonox
  • code/trunk/src/orxonox/objects/pickup/items/HealthImmediate.h

    r3078 r3079  
    3737#include "OrxonoxPrereqs.h"
    3838
    39 #include "../PassiveItem.h"
     39#include "objects/pickup/PassiveItem.h"
    4040
    4141namespace orxonox
    4242{
    43     class Pawn;
    44 
    4543    /**
    4644        @brief Health-item, immediatly recovers health when picked up.
  • code/trunk/src/orxonox/objects/pickup/items/HealthUsable.cc

    r3078 r3079  
    3333
    3434#include "HealthUsable.h"
    35 #include "../DroppedItem.h"
     35#include "objects/pickup/DroppedItem.h"
    3636
    3737#include "objects/worldentities/pawns/Pawn.h"
     
    3939#include "core/CoreIncludes.h"
    4040#include "core/XMLPort.h"
    41 #include "core/Core.h"
    4241
    4342namespace orxonox
  • code/trunk/src/orxonox/objects/pickup/items/HealthUsable.h

    r3078 r3079  
    3737#include "OrxonoxPrereqs.h"
    3838
    39 #include "../UsableItem.h"
     39#include "objects/pickup/UsableItem.h"
    4040#include "util/Math.h"
    4141
    4242namespace orxonox
    4343{
    44     class Pawn;
    45 
    4644    /**
    4745        @brief Health-item, enables player recover health when used.
  • code/trunk/src/orxonox/objects/pickup/items/Jump.cc

    r3078 r3079  
    3939#include "core/CoreIncludes.h"
    4040#include "core/XMLPort.h"
    41 #include "core/Core.h"
    4241
    4342namespace orxonox
  • code/trunk/src/orxonox/objects/pickup/items/Jump.h

    r3078 r3079  
    4444namespace orxonox
    4545{
    46     class Pawn;
    47 
    4846    /**
    4947        @brief Jump-item, enables player to "jump" into a direction.
Note: See TracChangeset for help on using the changeset viewer.