Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/game/example')
-rw-r--r--src/game/example/example.cc18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/game/example/example.cc b/src/game/example/example.cc
index 25daef7..9d4c1ed 100644
--- a/src/game/example/example.cc
+++ b/src/game/example/example.cc
@@ -43,8 +43,8 @@ Example::Example() : core::Module("The Osirion Project Example", true)
cube->set_label("cube");
cube->set_name("The Red Cube");
cube->entity_shape = core::Entity::Cube; // set the shape to cube
- cube->entity_location.assign(16, -8, 0); // set location
- cube->entity_color.assign(1, 0, 0); // set RGB color red
+ cube->get_location().assign(16, -8, 0); // set location
+ cube->get_color().assign(1, 0, 0); // set RGB color red
cube->entity_radius = 0.25f; // set radius, in game units
cube->set_zone(zone); // add the entity to the zone
@@ -52,8 +52,8 @@ Example::Example() : core::Module("The Osirion Project Example", true)
sphere->set_label("sphere");
sphere->set_name("The Green Sphere");
sphere->entity_shape = core::Entity::Sphere; // set the shape to sphere
- sphere->entity_location.assign(16, 0, 0); // set location
- sphere->entity_color.assign(0, 1, 0); // set RGB color green
+ sphere->get_location().assign(16, 0, 0); // set location
+ sphere->get_color().assign(0, 1, 0); // set RGB color green
sphere->entity_radius = 0.25f; // set radius, in game units
sphere->set_zone(zone); // add the entity to the zone
@@ -61,8 +61,8 @@ Example::Example() : core::Module("The Osirion Project Example", true)
diamond->set_label("diamond");
diamond->set_name("The Blue Diamond");
diamond->entity_shape = core::Entity::Diamond; // set the shape to cube
- diamond->entity_location.assign(16, 8, 0); // set location
- diamond->entity_color.assign(0, 0, 1); // set RGB color blue
+ diamond->get_location().assign(16, 8, 0); // set location
+ diamond->get_color().assign(0, 0, 1); // set RGB color blue
diamond->entity_radius = 0.25f; // set radius, in game units
diamond->set_zone(zone); // add the entity to the zone
@@ -70,9 +70,9 @@ Example::Example() : core::Module("The Osirion Project Example", true)
axis->set_label("origin");
axis->set_name("The Origin");
axis->entity_shape = core::Entity::Axis; // set the shape to axis
- axis->entity_location.assign(0, 0, 0); // set location
- axis->entity_color.assign(1); // set greyscale color white
- axis->entity_color_second.assign(0.5f, 0.0f, 0.5f); // set RGB secondary color
+ axis->get_location().assign(0, 0, 0); // set location
+ axis->get_color().assign(1); // set greyscale color white
+ axis->get_color_second().assign(0.5f, 0.0f, 0.5f); // set RGB secondary color
axis->entity_radius = 0.25f; // set radius, in game units
axis->set_zone(zone); // add the entity to the zone