Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStijn Buys <ingar@osirion.org>2008-02-11 00:19:11 +0000
committerStijn Buys <ingar@osirion.org>2008-02-11 00:19:11 +0000
commitafec8e7c3aec1a186512b997ed3b717efef8fc43 (patch)
tree92f19ef9144bd271c72a19a15ae32b7dcdcd994c /src/core/entity.cc
parent825d5a44bd312772c53fdaa8924e4009cfb320a3 (diff)
renamed Entity.base_* to Entity.core_*
fixed camera::mode::Overview
Diffstat (limited to 'src/core/entity.cc')
-rw-r--r--src/core/entity.cc25
1 files changed, 13 insertions, 12 deletions
diff --git a/src/core/entity.cc b/src/core/entity.cc
index 3854fd0..b0808fb 100644
--- a/src/core/entity.cc
+++ b/src/core/entity.cc
@@ -13,16 +13,16 @@ namespace core
// --- Entity -----------------------------------------------------
-Entity::Entity(unsigned int entity_flags, unsigned int entity_type)
+Entity::Entity(unsigned int entity_flags)
{
flags = entity_flags;
- type = entity_type;
-
- base_shape = entity::Diamond;
- base_color = math::Color(1.0f, 1.0f, 1.0f);
- base_radius = 1.0f;
+
+ core_shape = entity::Diamond;
+ core_color = math::Color(1.0f, 1.0f, 1.0f);
+ core_radius = 1.0f;
core::entity::add(this);
+ type = 0;
}
@@ -31,8 +31,8 @@ Entity::~Entity()
// --- EntityDynamic ------------------------------------------
-EntityDynamic::EntityDynamic(unsigned int entity_flags, unsigned int entity_type) :
- Entity(entity_type, entity_flags),
+EntityDynamic::EntityDynamic(unsigned int entity_flags) :
+ Entity(entity_flags),
speed(0,0,0)
{
@@ -40,8 +40,8 @@ EntityDynamic::EntityDynamic(unsigned int entity_flags, unsigned int entity_type
// --- EntityControlable ------------------------------------------
-EntityControlable::EntityControlable(unsigned int entity_flags, unsigned int entity_type) :
- EntityDynamic(entity_type, entity_flags)
+EntityControlable::EntityControlable(unsigned int entity_flags) :
+ EntityDynamic(entity_flags)
{
owner = 0;
}
@@ -90,8 +90,9 @@ void list()
{
std::vector<Entity *>::iterator it;
for (it=registry.begin(); it != registry.end(); it++) {
- con_print << " id " << std::setw(3) << (*it)->id
- << " type " << std::setw(3) << (*it)->type
+ con_print << " id " << std::setw(4) << (*it)->id
+ << " type " << std::setw(4) << (*it)->core_type()
+ << ":" << std::setw(4) << (*it)->type
<< " " << (*it)->label << std::endl;
}
con_print << registry.size() << " registered entities" << std::endl;