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-10 17:54:53 +0000
committerStijn Buys <ingar@osirion.org>2008-02-10 17:54:53 +0000
commit825d5a44bd312772c53fdaa8924e4009cfb320a3 (patch)
treea222232dee96bfe391eba819b1a18693db5bb3a4 /src/core/entity.cc
parent31959bc355c471c573828bf63932850e46c4b5bc (diff)
more entity updates
Diffstat (limited to 'src/core/entity.cc')
-rw-r--r--src/core/entity.cc7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/core/entity.cc b/src/core/entity.cc
index 7f23213..3854fd0 100644
--- a/src/core/entity.cc
+++ b/src/core/entity.cc
@@ -18,7 +18,12 @@ Entity::Entity(unsigned int entity_flags, unsigned int entity_type)
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::entity::add(this);
+
}
Entity::~Entity()
@@ -86,7 +91,7 @@ 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(2) << (*it)->type
+ << " type " << std::setw(3) << (*it)->type
<< " " << (*it)->label << std::endl;
}
con_print << registry.size() << " registered entities" << std::endl;