Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/orxonox/trunk/core/npc.cc @ 1897

Last change on this file since 1897 was 1896, checked in by patrick, 21 years ago

orxonox/trunk: added ability to shoot. so check out the new release and shoot the fuck up

File size: 871 bytes
Line 
1
2
3/*
4   orxonox - the future of 3D-vertical-scrollers
5
6   Copyright (C) 2004 orx
7
8   This program is free software; you can redistribute it and/or modify
9   it under the terms of the GNU General Public License as published by
10   the Free Software Foundation; either version 2, or (at your option)
11   any later version.
12
13   ### File Specific:
14   main-programmer: Patrick Boenzli
15   co-programmer:
16*/
17
18
19#include "npc.h"
20
21#include <iostream>
22
23
24using namespace std;
25
26
27NPC::NPC () {}
28
29NPC::~NPC () {}
30
31
32void NPC::setPosition(int x, int y, int z)
33{
34  xCor = x; yCor = y; zCor = z;
35}
36
37void NPC::getPosition(int* x, int* y, int* z) 
38{
39  *x = xCor; 
40  *y = yCor; 
41  *z = zCor;
42}
43
44void NPC::setCollisionRadius(int r) 
45{
46  collisionRadius = r;
47}
48
49float NPC::getCollisionRadius() 
50{
51  return collisionRadius;
52}
53
54
55
56void NPC::drawNPC(void) 
57{
58  cout << "Player::drawNPC()" << endl;
59}
Note: See TracBrowser for help on using the repository browser.