Changeset 1872 in orxonox.OLD for orxonox/trunk/core/player.cc
- Timestamp:
- May 6, 2004, 10:50:39 PM (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/core/player.cc
r1858 r1872 10 10 the Free Software Foundation; either version 2, or (at your option) 11 11 any later version. 12 13 ### File Specific: 14 main-programmer: Patrick Boenzli 15 co-programmer: 12 16 */ 13 17 … … 19 23 20 24 21 Player::Player () {} 25 Player::Player () { 26 xCor = yCor = zCor = 0; 27 } 22 28 23 29 … … 31 37 } 32 38 39 void Player::getPosition(int* x, int* y, int* z) 40 { 41 *x = xCor; *y = yCor; *z = zCor; 42 } 43 44 void Player::goX(int x) 45 { 46 // (*player).goUp(); 47 xCor += x; 48 cout << "goX now..." << endl; 49 } 50 51 52 void Player::goY(int y) 53 { 54 yCor += y; 55 } 56 57 void Player::goZ(int z) 58 { 59 zCor += z; 60 } 61 62 void Player::shoot(int n) { 63 } 64 65 66 //void Player::addIO(InputOutput *io) {} 67 33 68 34 69 void Player::drawPlayer(void) 35 70 { 36 cout << "Player::drawPlayer()" << endl; 71 //cout << "Player::drawPlayer()" << endl; 72 glColor3f(1.0, 0.9, 0.4); 73 glRectf(-5.0 + yCor, -5.0 + xCor, 5.0 + yCor, 5.0 + xCor); 74 cout << "x: " << xCor << " y: " << yCor << endl; 37 75 }
Note: See TracChangeset
for help on using the changeset viewer.