Changeset 2707 in orxonox.OLD for orxonox/branches/buerli/src/player.cc
- Timestamp:
- Nov 3, 2004, 12:29:03 AM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/branches/buerli/src/player.cc
r2551 r2707 62 62 void Player::command (Command* cmd) 63 63 { 64 65 66 67 68 69 64 //printf("Player|recieved command [%s]\n", cmd->cmd); 65 if( !strcmp( cmd->cmd, "up")) bUp = !cmd->bUp; 66 else if( !strcmp( cmd->cmd, "down")) bDown = !cmd->bUp; 67 else if( !strcmp( cmd->cmd, "left")) bLeft = !cmd->bUp; 68 else if( !strcmp( cmd->cmd, "right")) bRight = !cmd->bUp; 69 else if( !strcmp( cmd->cmd, "fire")) bFire = !cmd->bUp; 70 70 } 71 71 72 72 void Player::draw () 73 { 73 { 74 74 glMatrixMode(GL_MODELVIEW); 75 75 glLoadIdentity();
Note: See TracChangeset
for help on using the changeset viewer.