Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 3034 for code/trunk


Ignore:
Timestamp:
May 23, 2009, 10:05:58 PM (16 years ago)
Author:
landauf
Message:

replaced tabs with spaces

Location:
code/trunk/src/orxonox
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/src/orxonox/gui/GUIManager.cc

    r3008 r3034  
    9191        {
    9292            // destroy our own tolua interfaces
    93                 lua_pushnil(luaState_);
    94                 lua_setglobal(luaState_, "Orxonox");
    95                 lua_pushnil(luaState_);
    96                 lua_setglobal(luaState_, "Core");
     93            lua_pushnil(luaState_);
     94            lua_setglobal(luaState_, "Orxonox");
     95            lua_pushnil(luaState_);
     96            lua_setglobal(luaState_, "Core");
    9797            delete scriptModule_;
    9898        }
  • code/trunk/src/orxonox/objects/worldentities/pawns/Spectator.cc

    r2896 r3034  
    112112    void Spectator::changedFlareVisibility()
    113113    {
    114         if ( this->greetingFlare_ )
     114        if (this->greetingFlare_)
    115115            this->greetingFlare_->setVisible(this->bGreetingFlareVisible_);
    116116    }
  • code/trunk/src/orxonox/objects/worldentities/triggers/DistanceTrigger.cc

    r3033 r3034  
    8686  {
    8787    Identifier* targetId = ClassByString(targets);
    88    
     88
    8989    //! Checks whether the target is (or is derived from) a ControllableEntity.
    9090    Identifier* controllableEntityId = Class(ControllableEntity);
     
    9393      this->setForPlayer(true);
    9494    }
    95    
     95
    9696    if (!targetId)
    9797    {
     
    131131      if (distanceVec.length() < this->distance_)
    132132      {
    133        
    134         //! If the target is a player (resp. is a, or is derived from a, ControllableEntity) the triggeringPlayer is set to the target entity.
     133
     134        // If the target is a player (resp. is a, or is derived from a, ControllableEntity) the triggeringPlayer is set to the target entity.
    135135        if(this->isForPlayer())
    136         {
     136        {
    137137          Pawn* player = dynamic_cast<Pawn*>(entity);
    138           this->setTriggeringPlayer(player);
    139         }
    140        
     138          this->setTriggeringPlayer(player);
     139        }
     140
    141141        return true;
    142142      }
  • code/trunk/src/orxonox/overlays/OverlayGroup.cc

    r2911 r3034  
    113113    }
    114114
    115         /**
     115    /**
    116116    @brief
    117117        Removes an element from the map.
  • code/trunk/src/orxonox/overlays/notifications/Notification.h

    r2911 r3034  
    5656            Notification(const std::string & message);
    5757            virtual ~Notification();
    58            
     58
    5959            bool send(void); //!< Sends the Notification to the Notificationmanager, with sender NotificationManager::NONE;
    6060            bool send(const std::string & sender); //!< Sends the Notification to the Notificationmanager.
    61            
     61
    6262            /**
    6363            @brief Checks whether the Notification was sent.
     
    7272            inline const std::string & getMessage(void) const
    7373                { return this->message_; }
    74                
     74
    7575            inline const std::string & getSender(void) const
    7676                { return this->sender_; }
    77            
     77
    7878            bool setMessage(const std::string & message); //!< Sets the message of the notification.
    79            
     79
    8080        private:
    8181            std::string message_; //!< The Notification message.
    8282            std::string sender_; //!< The sender of the notification.
    8383            bool sent_; //!< Whether Notification has been sent, if so it cannot be changed.
    84            
     84
    8585            void initialize(void);
    86        
     86
    8787    };
    8888
  • code/trunk/src/orxonox/overlays/notifications/NotificationManager.h

    r2911 r3034  
    6060            NotificationManager();
    6161            virtual ~NotificationManager();
    62                
     62
    6363            static const std::string ALL;
    6464            static const std::string NONE;
    65          
     65
    6666            static NotificationManager & getInstance(); //! Returns a reference to the single instance of the NotificationManager.
    6767
    6868            bool registerNotification(Notification* notification); //!< Registers a Notification within the NotificationManager.
    6969            bool registerQueue(NotificationQueue* queue); //!< Registers a NotificationQueue within the NotificationManager.
    70            
     70
    7171            bool getNotifications(NotificationQueue* queue, std::multimap<std::time_t,Notification*>* map, const std::time_t & timeFrameStart, const std::time_t & timeFrameEnd); //!< Returns the Notifications for a specific NotificationQueue in a specified timeframe.
    72            
     72
    7373            /**
    7474            @brief Fetches the Notifications for a specific NotificationQueue starting at a specified time.
     
    8989            bool getNotifications(NotificationQueue* queue, std::multimap<std::time_t,Notification*>* map, int timeDelay)
    9090                { return this->getNotifications(queue, map, std::time(0)-timeDelay, std::time(0)); }
    91      
     91
    9292        private:
    9393            static NotificationManager* singletonRef_s;
    9494
    9595            int highestIndex_; //!< This variable holds the highest index (resp. key) in notificationLists_s, to secure that  no key appears twice.
    96        
     96
    9797            std::multimap<std::time_t,Notification*> allNotificationsList_; //!< Container where all notifications are stored (together with their respecive timestamps).
    9898            std::map<NotificationQueue*,int> queueList_; //!< Container where all NotificationQueues are stored with a number as identifier.
    9999            std::map<int,std::multimap<std::time_t,Notification*>*> notificationLists_; //!< Container where all Notifications, for each identifier (associated with a NotificationQueue), are stored.
    100            
     100
    101101
    102102    };
Note: See TracChangeset for help on using the changeset viewer.