Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 3450 in orxonox.OLD for orxonox/trunk/src/player.cc


Ignore:
Timestamp:
Mar 2, 2005, 4:10:19 PM (20 years ago)
Author:
bensch
Message:

orxonox/trunk: doxygen-tags: player.cc/h p_node.cc/h base_entity.h skysphere.cc/h

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/src/player.cc

    r3396 r3450  
    2323using namespace std;
    2424
    25 
     25/**
     26   \brief creates a new Player
     27   \param isFree if the player is free
     28*/
    2629Player::Player(bool isFree) : WorldEntity(isFree)
    2730{
     
    5558}
    5659
     60/**
     61   \brief destructs the player
     62*/
    5763Player::~Player ()
    5864{
     
    6066}
    6167
     68/**
     69   \brief effect that occurs after the player is spawned
     70*/
    6271void Player::postSpawn ()
    6372{
     
    7079}
    7180
     81/**
     82   \brief the function called for each passing timeSnap
     83   \param time The timespan passed since last update
     84*/
    7285void Player::tick (float time)
    7386{
     
    7689}
    7790
     91/**
     92   \brief if the player is hit, call this function
     93   \param weapon hit by this weapon
     94   \param loc ??
     95*/
    7896void Player::hit (WorldEntity* weapon, Vector loc)
    7997{
    8098}
    8199
     100/**
     101   \brief action that happens when the player is destroyed.
     102*/
    82103void Player::destroy ()
    83104{
    84105}
    85106
     107/**
     108    \brief Collision with another Entity has this effect
     109    \param other the other colider
     110    \param ownhitflags ??
     111    \param otherhitflags ??
     112*/
    86113void Player::collide (WorldEntity* other, Uint32 ownhitflags, Uint32 otherhitflags)
    87114{
    88115}
    89116
     117/**
     118   \brief The connection to the command node
     119   \param cmd the Command unit from witch to map
     120
     121   here the commands are mapped to the players movement/weaponary
     122*/
    90123void Player::command (Command* cmd)
    91124{
     
    98131}
    99132
     133/**
     134   \brief draws the player after transforming him.
     135*/
    100136void Player::draw ()
    101137{
     
    119155
    120156/*PN
    121 void Player::getLookat(Location* locbuf)
    122 {
     157  void Player::getLookat(Location* locbuf)
     158  {
    123159  *locbuf = *getLocation();
    124160  //locbuf->dist += 5.0;
    125 }
    126 */
    127 
     161  }
     162*/
     163
     164/**
     165   \brief the action occuring if the player left the game
     166*/
    128167void Player::leftWorld ()
    129168{
    130169}
    131170
     171/**
     172   \brief action if player moves
     173   \param time the timeslice since the last frame
     174*/
    132175void Player::move (float time)
    133176{
Note: See TracChangeset for help on using the changeset viewer.