Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 1899 in orxonox.OLD for orxonox/trunk/core/npc.cc


Ignore:
Timestamp:
May 20, 2004, 1:03:53 PM (20 years ago)
Author:
patrick
Message:

trunk/orxonox: collision detection implemented: simple spheres. all debug informations still print out to console. one enemy added, no AI, no move, waits to be killed. No kill signal implemented yet: look debug infos on console.

File:
1 edited

Legend:

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

    r1896 r1899  
    3030
    3131
    32 void NPC::setPosition(int x, int y, int z)
     32void NPC::setPosition(float x, float y, float z)
    3333{
    3434  xCor = x; yCor = y; zCor = z;
    3535}
    3636
    37 void NPC::getPosition(int* x, int* y, int* z)
     37void NPC::getPosition(float* x, float* y, float* z)
    3838{
    3939  *x = xCor;
     
    4242}
    4343
    44 void NPC::setCollisionRadius(int r)
     44void NPC::setCollisionRadius(float r)
    4545{
    4646  collisionRadius = r;
     
    5656void NPC::drawNPC(void)
    5757{
    58   cout << "Player::drawNPC()" << endl;
     58  glPushMatrix();
     59  glTranslatef(xCor, yCor, 3.0);
     60  //glScalef(1.0, 3.0, 1.0);
     61  glutWireSphere(1.0, 10, 10);
     62  glPopMatrix();
     63  //cout << "Player::drawNPC()" << endl;
    5964}
Note: See TracChangeset for help on using the changeset viewer.