Changeset 3450 in orxonox.OLD for orxonox/trunk/src/player.cc
- Timestamp:
- Mar 2, 2005, 4:10:19 PM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/player.cc
r3396 r3450 23 23 using namespace std; 24 24 25 25 /** 26 \brief creates a new Player 27 \param isFree if the player is free 28 */ 26 29 Player::Player(bool isFree) : WorldEntity(isFree) 27 30 { … … 55 58 } 56 59 60 /** 61 \brief destructs the player 62 */ 57 63 Player::~Player () 58 64 { … … 60 66 } 61 67 68 /** 69 \brief effect that occurs after the player is spawned 70 */ 62 71 void Player::postSpawn () 63 72 { … … 70 79 } 71 80 81 /** 82 \brief the function called for each passing timeSnap 83 \param time The timespan passed since last update 84 */ 72 85 void Player::tick (float time) 73 86 { … … 76 89 } 77 90 91 /** 92 \brief if the player is hit, call this function 93 \param weapon hit by this weapon 94 \param loc ?? 95 */ 78 96 void Player::hit (WorldEntity* weapon, Vector loc) 79 97 { 80 98 } 81 99 100 /** 101 \brief action that happens when the player is destroyed. 102 */ 82 103 void Player::destroy () 83 104 { 84 105 } 85 106 107 /** 108 \brief Collision with another Entity has this effect 109 \param other the other colider 110 \param ownhitflags ?? 111 \param otherhitflags ?? 112 */ 86 113 void Player::collide (WorldEntity* other, Uint32 ownhitflags, Uint32 otherhitflags) 87 114 { 88 115 } 89 116 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 */ 90 123 void Player::command (Command* cmd) 91 124 { … … 98 131 } 99 132 133 /** 134 \brief draws the player after transforming him. 135 */ 100 136 void Player::draw () 101 137 { … … 119 155 120 156 /*PN 121 void Player::getLookat(Location* locbuf)122 {157 void Player::getLookat(Location* locbuf) 158 { 123 159 *locbuf = *getLocation(); 124 160 //locbuf->dist += 5.0; 125 } 126 */ 127 161 } 162 */ 163 164 /** 165 \brief the action occuring if the player left the game 166 */ 128 167 void Player::leftWorld () 129 168 { 130 169 } 131 170 171 /** 172 \brief action if player moves 173 \param time the timeslice since the last frame 174 */ 132 175 void Player::move (float time) 133 176 {
Note: See TracChangeset
for help on using the changeset viewer.