Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 8487 for code


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

Legend:

Unmodified
Added
Removed
  • code/branches/dockingsystem2/data/gui/scripts/DockingDialog.lua

    r8434 r8487  
    1010
    1111function P.onShow()
     12    orxonox.CommandExecutor:execute("pause")
    1213    P.update()
    13     orxonox.CommandExecutor:execute("pause")
    1414end
    1515
  • code/branches/dockingsystem2/data/levels/docking.oxw

    r8434 r8487  
    3737
    3838    <Dock>
     39        <animation>
     40            <MoveToDockingTarget target="destroyer" position="10,150,40" />
     41        </animation>
    3942        <effects>
    4043            <DockToShip target="destroyer" />
     
    4649        </events>
    4750        <attached>
    48             <DistanceTrigger position="0,0,0" distance="50" target="Pawn" beaconMode="exclude" targetname="destroyerBeacon" name="dockMe" />
     51            <DistanceTrigger position="0,0,0" distance="30" target="Pawn" beaconMode="exclude" targetname="destroyerBeacon" name="dockMe" />
    4952            <Billboard material="Examples/Flare" colour="1.0, 0, 0" />
    5053        </attached>
  • 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.