Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/orxonox/trunk/src/world_entity.cc @ 2036

Last change on this file since 2036 was 2036, checked in by patrick, 20 years ago

orxonxo/trunk/src: extended framework: class inheritance, right including (had som bugs), framework not finished yet

File size: 1.3 KB
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#include <iostream>
19
20#include "world_entity.h"
21
22using namespace std;
23
24
25WorldEntity::WorldEntity () 
26{
27  health = 100;
28  speed = 0;
29}
30
31
32WorldEntity::~WorldEntity () {}
33
34
35/*void WorldEntity::setPosition( Vector position ) {} */
36/* Vector*  void getPosition() {} */
37
38void WorldEntity::setOrientation(/* Vector orientation*/) {}
39/* Vector* */ void WorldEntity::getOrientation() {}
40
41void WorldEntity::setSpeed(float speed)
42{
43  this->speed = speed;
44}
45
46float WorldEntity::getSpeed()
47{
48  return speed;
49}
50
51void WorldEntity::setHealth(float health)
52{
53  this->health = health;
54}
55
56float WorldEntity::getHealth()
57{
58  return health;
59}
60
61
62void WorldEntity::tick(float dt) 
63{}
64
65void WorldEntity::paint() 
66{
67  cout << "WorldEntity::paint()" << endl;
68}
69
70/* virtual void WorldEntity::actionEvent(Event* event); */
71void WorldEntity::collide(WorldEntity* we /*, Vector n */) 
72{}
73
74void WorldEntity::hurt() 
75{}
76
77void WorldEntity::destroy() 
78{}
Note: See TracBrowser for help on using the repository browser.