Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
path: root/src/game
diff options
context:
space:
mode:
authorStijn Buys <ingar@osirion.org>2008-02-09 23:06:00 +0000
committerStijn Buys <ingar@osirion.org>2008-02-09 23:06:00 +0000
commit31959bc355c471c573828bf63932850e46c4b5bc (patch)
treecc473901e88926e36c89775a7fc97a51da948498 /src/game
parentd281384f727583b39b8e97ffea58b278ecc8dd47 (diff)
more entities
Diffstat (limited to 'src/game')
-rw-r--r--src/game/game.cc5
-rw-r--r--src/game/shared.h4
-rw-r--r--src/game/ship.cc2
-rw-r--r--src/game/ship.h2
-rw-r--r--src/game/star.cc2
5 files changed, 8 insertions, 7 deletions
diff --git a/src/game/game.cc b/src/game/game.cc
index f8b8596..8a50e33 100644
--- a/src/game/game.cc
+++ b/src/game/game.cc
@@ -97,10 +97,13 @@ bool Game::init()
con_print << " " << sectors[n]->label << " " << sectors[n]->name << std::endl;
*/
- ship = new Ship();
star = new Star();
star->location = Vector3f(256.0f, 0.0f, 256.0f);
+ star->label = "star: Sabishi Hoshi";
+
+ ship = new Ship();
ship->location = Vector3f(0,0,0);
+ ship->label = "ship: Micron Vector";
return true;
}
diff --git a/src/game/shared.h b/src/game/shared.h
index 5c04309..a9228a3 100644
--- a/src/game/shared.h
+++ b/src/game/shared.h
@@ -10,8 +10,8 @@
namespace game
{
// entity type constants
- const unsigned int ship_enttype = 1;
- const unsigned int star_enttype = 2;
+ const unsigned int ship_enttype = 256;
+ const unsigned int star_enttype = 257;
}
diff --git a/src/game/ship.cc b/src/game/ship.cc
index 9252f1d..1ef4b9d 100644
--- a/src/game/ship.cc
+++ b/src/game/ship.cc
@@ -17,7 +17,7 @@ using math::degrees180f;
namespace game {
-Ship::Ship() : core::Entity(ship_enttype)
+Ship::Ship() : core::Entity(0, ship_enttype)
{
speed = 0;
yaw_current = 0;
diff --git a/src/game/ship.h b/src/game/ship.h
index f83c41e..e919f38 100644
--- a/src/game/ship.h
+++ b/src/game/ship.h
@@ -42,8 +42,6 @@ public:
float speed_max;
/// yaw turn speed
float yaw_speed;
-
- static const unsigned int type_id=1;
private:
/// current yaw, angle in XZ plane, 0-360
float yaw_current;
diff --git a/src/game/star.cc b/src/game/star.cc
index a8b5e87..4ef22de 100644
--- a/src/game/star.cc
+++ b/src/game/star.cc
@@ -10,7 +10,7 @@
namespace game {
-Star::Star() : core::Entity(star_enttype),
+Star::Star() : core::Entity(0, star_enttype),
color(1,1,1,1)
{
radius = 48;