Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 19, 2007, 5:04:07 AM (17 years ago)
Author:
landauf
Message:
  • added very bad collision detection (presentation hack :D)
  • added explosions
  • fixed bug in ParticleInterface (it tried to delete SceneManager)

AND:

  • fixed one of the most amazing bugs ever! (the game crashed when I deleted an object through a timer-function. because the timer-functions is called by an iterator, the iterator indirectly delted its object. by overloading the (it++) operator, i was able to solve this problem)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/FICN/src/orxonox/core/Iterator.h

    r496 r646  
    5656
    5757            /**
     58                @brief Overloading of the it++ operator: Iterator points to the next object in the list.
     59                @return The Iterator itself
     60            */
     61            Iterator<T> operator++(int i)
     62            {
     63                Iterator<T> copy = *this;
     64                this->element_ = this->element_->next_;
     65                return copy;
     66            }
     67
     68            /**
    5869                @brief Overloading of the --it operator: Iterator points to the previous object in the list.
    5970                @return The Iterator itself
     
    6374                this->element_ = this->element_->prev_;
    6475                return *this;
     76            }
     77
     78            /**
     79                @brief Overloading of the it-- operator: Iterator points to the previous object in the list.
     80                @return The Iterator itself
     81            */
     82            Iterator<T> operator--(int i)
     83            {
     84                Iterator<T> copy = *this;
     85                this->element_ = this->element_->prev_;
     86                return copy;
    6587            }
    6688
Note: See TracChangeset for help on using the changeset viewer.