Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Mar 19, 2009, 10:34:54 AM (16 years ago)
Author:
rgrieder
Message:

Renaming "tick" to "update" for all those classes not inheriting from Tickable to avoid confusions.
GameState::ticked still exists, but that's going to change anyway.

Location:
code/branches/gui/src/orxonox/gamestates
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • code/branches/gui/src/orxonox/gamestates/GSClient.cc

    r2171 r2800  
    3131
    3232#include "core/input/InputManager.h"
     33#include "core/Clock.h"
    3334#include "core/CommandLine.h"
    3435#include "core/Core.h"
     
    6061        GSLevel::enter(this->getParent()->getViewport());
    6162
    62         client_->tick(0);
     63        // TODO: Get Clock from Game or GameStateManager, but with 0 delta time
     64        client_->update(Clock());
    6365    }
    6466
     
    7880    {
    7981        GSLevel::ticked(time);
    80         client_->tick(time.getDeltaTime());
     82        client_->update(time);
    8183
    8284        this->tickChild(time);
  • code/branches/gui/src/orxonox/gamestates/GSDedicated.cc

    r2662 r2800  
    3030#include "GSDedicated.h"
    3131
     32#include "core/Clock.h"
    3233#include "core/CommandLine.h"
    3334#include "core/Core.h"
     
    8384            timeSinceLastUpdate_ -= static_cast<unsigned int>(timeSinceLastUpdate_ / NETWORK_PERIOD) * NETWORK_PERIOD;
    8485            GSLevel::ticked(time);
    85             server_->tick(time.getDeltaTime());
     86            server_->update(time);
    8687            this->tickChild(time);
    8788        }
  • code/branches/gui/src/orxonox/gamestates/GSGUI.cc

    r2790 r2800  
    3131
    3232#include <OgreViewport.h>
     33#include "core/Clock.h"
    3334#include "core/input/InputManager.h"
    3435#include "core/input/SimpleInputState.h"
     
    6465    {
    6566        // tick CEGUI
    66         guiManager_->tick(time.getDeltaTime());
     67        guiManager_->update(time);
    6768
    6869        this->tickChild(time);
  • code/branches/gui/src/orxonox/gamestates/GSGraphics.cc

    r2759 r2800  
    233233        float dt = time.getDeltaTime();
    234234
    235         this->inputManager_->tick(dt);
     235        this->inputManager_->update(time);
    236236        // tick console
    237         this->console_->tick(dt);
     237        this->console_->update(time);
    238238        this->tickChild(time);
    239239
  • code/branches/gui/src/orxonox/gamestates/GSRoot.cc

    r2799 r2800  
    134134        uint64_t timeBeforeTick = time.getRealMicroseconds();
    135135
    136         Core::getInstance().tick(time);
     136        Core::getInstance().update(time);
    137137
    138138        for (ObjectList<TimerBase>::iterator it = ObjectList<TimerBase>::begin(); it; ++it)
  • code/branches/gui/src/orxonox/gamestates/GSServer.cc

    r2171 r2800  
    7373    {
    7474        GSLevel::ticked(time);
    75         server_->tick(time.getDeltaTime());
     75        server_->update(time);
    7676        this->tickChild(time);
    7777    }
  • code/branches/gui/src/orxonox/gamestates/GSStandalone.cc

    r2790 r2800  
    8686        }
    8787        // tick CEGUI
    88         guiManager_->tick(time.getDeltaTime());
     88        guiManager_->update(time);
    8989
    9090        GSLevel::ticked(time);
Note: See TracChangeset for help on using the changeset viewer.