Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Apr 18, 2011, 4:35:01 PM (13 years ago)
Author:
sven
Message:

First working dock example..

File:
1 edited

Legend:

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

    r8196 r8257  
    3636#define _DockingEffect_H__
    3737
     38#include "core/CoreIncludes.h"
     39#include "core/XMLPort.h"
     40
     41#include "infos/PlayerInfo.h"
     42
    3843#include "DockingPrereqs.h"
     44#include "DockingTarget.h"
    3945
    4046#include <list>
     
    6874            virtual bool docking(PlayerInfo* player) = 0; //!< Called when docking starts
    6975            virtual bool attach(PlayerInfo* player) = 0; //!< Called after docking animation
    70             virtual bool release(PlayerInfo* player) = 0; //!< Called when player wants undock
     76            virtual bool release(PlayerInfo* player) = 0; //!< Called when player wants to undock
    7177
    7278            static bool invokeEffect(docking::event event, PlayerInfo* player, std::list<DockingEffect*> & effects); //!< Invokes the event specific method of all DockingEffects in the list
     79            static DockingTarget *findTarget(std::string name); //!< Iterates through all DockingTarget objects to find the one with name=target
    7380    };
    7481
Note: See TracChangeset for help on using the changeset viewer.