Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 8197


Ignore:
Timestamp:
Apr 6, 2011, 4:54:07 PM (13 years ago)
Author:
dafrick
Message:

Replacing getNick() with getName(). nick_ in HumanPlayer is only needed to synchronize the player name over the network.

Location:
code/branches/dockingsystem2
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • code/branches/dockingsystem2/data/levels/docking.oxw

    r8196 r8197  
    3030      <SpawnPoint position="<?lua print(math.random() * 500 - 250) ?>,<?lua print(math.random() * 500 - 250) ?>,<?lua print(math.random() * 500 - 250) ?>" lookat="0,0,0" spawnclass=SpaceShip pawndesign=spaceshipassff />
    3131    <?lua end ?>
    32 
    33 
    34     <Dock>
    35         <effects>
    36             <DockToShip />
    37         </effects>
    38         <events>
    39             <execute>
    40                 <EventListener event="dockMe" />
    41             </execute>
    42         </events>
    43         <attached>
    44             <DistanceTrigger position="0,0,0" distance="20" target="Pawn" name="dockMe" />
    45             <Billboard material="Examples/Flare" colour="1.0, 0, 0" />
    46         </attached>
    47     </Dock>
    48 
    49 
    5032   
    5133    <Destroyer
     
    6143
    6244      <attached>
     45        <Dock>
     46            <effects>
     47                <DockToShip />
     48            </effects>
     49            <events>
     50                <execute>
     51                    <EventListener event="dockMe" />
     52                </execute>
     53            </events>
     54            <attached>
     55                <DistanceMultiTrigger position="0,0,0" distance="20" target="Pawn" name="dockMe" />
     56                <Billboard material="Examples/Flare" colour="1.0, 0, 0" />
     57            </attached>
     58        </Dock>
     59     
    6360        <TeamSpawnPoint team=1 position="150,0,7" direction="-1,0,0" roll=90 yaw=0 spawnclass=SpaceShip pawndesign=spaceshipassff />
    6461        <TeamSpawnPoint team=1 position="0,0,7" lookat="-1,0,0" roll="90"  yaw=0 spawnclass=SpaceShip pawndesign=spaceshipassff />
  • code/branches/dockingsystem2/src/modules/docking/Dock.cc

    r8196 r8197  
    113113            COUT(0) << "Docking::execute Player was not as human as expected.." << std::endl;
    114114        }
    115         COUT(0) << "Dock triggered by player: " << human->getNick() << ".." << std::endl;
     115        COUT(0) << "Dock triggered by player: " << human->getName() << ".." << std::endl;
    116116
    117117        //TODO: This is waaay too oversimplified
  • code/branches/dockingsystem2/src/orxonox/infos/HumanPlayer.h

    r8196 r8197  
    4848            float getPing() const;
    4949            float getPacketLossRatio() const;
    50 
    51             inline const std::string& getNick() const
    52                 { return this->nick_; }
    5350
    5451            void setClientID(unsigned int clientID);
Note: See TracChangeset for help on using the changeset viewer.