Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 1790 for code


Ignore:
Timestamp:
Sep 15, 2008, 11:38:46 PM (16 years ago)
Author:
rgrieder
Message:

removed TickableReal

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

Legend:

Unmodified
Added
Removed
  • code/trunk/src/orxonox/gamestates/GSDedicated.cc

    r1755 r1790  
    102102    void GSDedicated::ticked(const Clock& time)
    103103    {
    104         // Call those objects that need the real time
    105         for (ObjectList<TickableReal>::iterator it = ObjectList<TickableReal>::begin(); it; ++it)
    106             it->tick(time.getDeltaTime());
    107104        // Call the scene objects
    108105        for (ObjectList<Tickable>::iterator it = ObjectList<Tickable>::begin(); it; ++it)
  • code/trunk/src/orxonox/gamestates/GSLevel.cc

    r1755 r1790  
    113113    void GSLevel::ticked(const Clock& time)
    114114    {
    115         // Call those objects that need the real time
    116         for (ObjectList<TickableReal>::iterator it = ObjectList<TickableReal>::begin(); it; ++it)
    117             it->tick(time.getDeltaTime());
    118115        // Call the scene objects
    119116        for (ObjectList<Tickable>::iterator it = ObjectList<Tickable>::begin(); it; ++it)
  • code/trunk/src/orxonox/objects/Tickable.cc

    r1535 r1790  
    4141        RegisterRootObject(Tickable);
    4242    }
    43 
    44     /**
    45         @brief Constructor: Registers the object in the TickableReal-list
    46     */
    47     TickableReal::TickableReal()
    48     {
    49         RegisterRootObject(TickableReal);
    50     }
    5143}
  • code/trunk/src/orxonox/objects/Tickable.h

    r1755 r1790  
    6464
    6565    SUPER_FUNCTION(1, Tickable, tick, true);
    66 
    67     //! The Tickable interface provides a tick(dt) function, that gets called every frame.
    68     class _OrxonoxExport TickableReal : virtual public OrxonoxClass
    69     {
    70         public:
    71             /**
    72                 @brief Gets called every frame.
    73                 @param dt The time since the last frame in seconds
    74             */
    75             virtual void tick(float dt) = 0;
    76 
    77         protected:
    78             TickableReal();
    79     };
    80 
    8166}
    8267
Note: See TracChangeset for help on using the changeset viewer.