Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 1872 in orxonox.OLD for orxonox/trunk/core/player.cc


Ignore:
Timestamp:
May 6, 2004, 10:50:39 PM (21 years ago)
Author:
patrick
Message:

orxonox/trunk: play the square - its possible now…

File:
1 edited

Legend:

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

    r1858 r1872  
    1010   the Free Software Foundation; either version 2, or (at your option)
    1111   any later version.
     12
     13   ### File Specific:
     14   main-programmer: Patrick Boenzli
     15   co-programmer:
    1216*/
    1317
     
    1923
    2024
    21 Player::Player () {}
     25Player::Player () {
     26  xCor = yCor = zCor = 0;
     27}
    2228
    2329
     
    3137}
    3238
     39void Player::getPosition(int* x, int* y, int* z)
     40{
     41  *x = xCor; *y = yCor; *z = zCor;
     42}
     43
     44void Player::goX(int x)
     45{
     46  // (*player).goUp();
     47  xCor += x;
     48  cout << "goX now..." << endl;
     49}
     50
     51
     52void Player::goY(int y)
     53{
     54  yCor += y;
     55}
     56
     57void Player::goZ(int z)
     58{
     59  zCor += z;
     60}
     61
     62void Player::shoot(int n) {
     63}
     64
     65
     66//void Player::addIO(InputOutput *io) {}
     67
    3368
    3469void Player::drawPlayer(void)
    3570{
    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;
    3775}
Note: See TracChangeset for help on using the changeset viewer.