Changeset 8487 for code/branches/dockingsystem2/src
- Timestamp:
- May 16, 2011, 1:39:51 PM (14 years ago)
- Location:
- code/branches/dockingsystem2/src/modules/docking
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/dockingsystem2/src/modules/docking/DockingEffect.cc
r8257 r8487 52 52 COUT(4) << "Invoking DockingEffects on player: " << player << " ." << std::endl; 53 53 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 { 56 58 case docking::DOCKING: 57 59 check &= (*effect)->docking(player); 58 break;59 case docking::ATTACH:60 check &= (*effect)->attach(player);61 60 break; 62 61 case docking::RELEASE: -
code/branches/dockingsystem2/src/modules/docking/DockingEffect.h
r8257 r8487 52 52 enum event { 53 53 DOCKING, 54 ATTACH,55 54 RELEASE 56 55 }; … … 72 71 virtual ~DockingEffect(); 73 72 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 76 74 virtual bool release(PlayerInfo* player) = 0; //!< Called when player wants to undock 77 75
Note: See TracChangeset
for help on using the changeset viewer.