1010
1111namespace openage ::renderer::world {
1212
13- WorldRenderEntity::WorldRenderEntity () :
14- RenderEntity{},
13+ RenderEntity::RenderEntity () :
14+ renderer:: RenderEntity{},
1515 ref_id{0 },
1616 position{nullptr , 0 , " " , nullptr , SCENE_ORIGIN},
1717 angle{nullptr , 0 , " " , nullptr , 0 },
1818 animation_path{nullptr , 0 } {
1919}
2020
21- void WorldRenderEntity ::update (const uint32_t ref_id,
22- const curve::Continuous<coord::phys3> &position,
23- const curve::Segmented<coord::phys_angle_t > &angle,
24- const std::string animation_path,
25- const time::time_t time) {
21+ void RenderEntity ::update (const uint32_t ref_id,
22+ const curve::Continuous<coord::phys3> &position,
23+ const curve::Segmented<coord::phys_angle_t > &angle,
24+ const std::string animation_path,
25+ const time::time_t time) {
2626 std::unique_lock lock{this ->mutex };
2727
2828 this ->ref_id = ref_id;
@@ -40,10 +40,10 @@ void WorldRenderEntity::update(const uint32_t ref_id,
4040 this ->last_update = time;
4141}
4242
43- void WorldRenderEntity ::update (const uint32_t ref_id,
44- const coord::phys3 position,
45- const std::string animation_path,
46- const time::time_t time) {
43+ void RenderEntity ::update (const uint32_t ref_id,
44+ const coord::phys3 position,
45+ const std::string animation_path,
46+ const time::time_t time) {
4747 std::unique_lock lock{this ->mutex };
4848
4949 this ->ref_id = ref_id;
@@ -53,25 +53,25 @@ void WorldRenderEntity::update(const uint32_t ref_id,
5353 this ->last_update = time;
5454}
5555
56- uint32_t WorldRenderEntity ::get_id () {
56+ uint32_t RenderEntity ::get_id () {
5757 std::shared_lock lock{this ->mutex };
5858
5959 return this ->ref_id ;
6060}
6161
62- const curve::Continuous<coord::scene3> &WorldRenderEntity ::get_position () {
62+ const curve::Continuous<coord::scene3> &RenderEntity ::get_position () {
6363 std::shared_lock lock{this ->mutex };
6464
6565 return this ->position ;
6666}
6767
68- const curve::Segmented<coord::phys_angle_t > &WorldRenderEntity ::get_angle () {
68+ const curve::Segmented<coord::phys_angle_t > &RenderEntity ::get_angle () {
6969 std::shared_lock lock{this ->mutex };
7070
7171 return this ->angle ;
7272}
7373
74- const curve::Discrete<std::string> &WorldRenderEntity ::get_animation_path () {
74+ const curve::Discrete<std::string> &RenderEntity ::get_animation_path () {
7575 std::shared_lock lock{this ->mutex };
7676
7777 return this ->animation_path ;
0 commit comments