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