Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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


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.h

    r1896 r1899  
    33#define NPC_H
    44
     5/* openGL Headers */
     6#include <GL/glut.h>
    57
    68class NPC {
     
    1012  ~NPC ();
    1113
     14  /* collision control */
     15  float collisionRadius;
     16
     17  float xCor;
     18  float yCor;
     19  float zCor;
     20
    1221  void drawNPC(void);
    13   void setPosition(int x, int y, int z);
    14   void getPosition(int* x, int* y, int* z);
    15   void setCollisionRadius(int r);
     22  void setPosition(float x, float y, float z);
     23  void getPosition(float* x, float* y, float* z);
     24  void setCollisionRadius(float r);
    1625  float getCollisionRadius();
    1726
     
    2130  int npcType;
    2231
    23   /* collision control */
    24   int collisionRadius;
    2532
    26   int xCor;
    27   int yCor;
    28   int zCor;
    2933;
    3034
Note: See TracChangeset for help on using the changeset viewer.