Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 16, 2011, 1:39:51 PM (14 years ago)
Author:
sven
Message:
 
Location:
code/branches/dockingsystem2/src/modules/docking
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code/branches/dockingsystem2/src/modules/docking/DockingEffect.cc

    r8257 r8487  
    5252        COUT(4) << "Invoking DockingEffects on player: " << player << " ."  << std::endl;
    5353
    54         for (std::list<DockingEffect*>::iterator effect = effects.begin(); effect != effects.end(); effect++) {
    55             switch(event) {
     54        for (std::list<DockingEffect*>::iterator effect = effects.begin(); effect != effects.end(); effect++)
     55        {
     56            switch(event)
     57            {
    5658                case docking::DOCKING:
    5759                    check &= (*effect)->docking(player);
    58                     break;
    59                 case docking::ATTACH:
    60                     check &= (*effect)->attach(player);
    6160                    break;
    6261                case docking::RELEASE:
  • code/branches/dockingsystem2/src/modules/docking/DockingEffect.h

    r8257 r8487  
    5252        enum event {
    5353            DOCKING,
    54             ATTACH,
    5554            RELEASE
    5655        };
     
    7271            virtual ~DockingEffect();
    7372
    74             virtual bool docking(PlayerInfo* player) = 0; //!< Called when docking starts
    75             virtual bool attach(PlayerInfo* player) = 0; //!< Called after docking animation
     73            virtual bool docking(PlayerInfo* player) = 0; //!< Called when player docked
    7674            virtual bool release(PlayerInfo* player) = 0; //!< Called when player wants to undock
    7775
Note: See TracChangeset for help on using the changeset viewer.