Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[tmp] RJD-1057 (4/5): Remove non-API member functions: EntityManager’s member functions forwarded to EntityBase (2/2) #1334

Draft
wants to merge 21 commits into
base: RJD-1057-remove-functions-forwarded-to-entity-base-middle
Choose a base branch
from

Conversation

TauTheLepton
Copy link
Contributor

@TauTheLepton TauTheLepton commented Jul 31, 2024

Description

DO NOT MERGE | THIS IS A TEMPORARY PR | WHEN THE RIGHT TIME COMES, A CLONE WILL BE CAST TO MASTER

Abstract

This pull request mainly consists of refactoring and introduces changes in the API and EntityManager.

Background

This pull request is an extension of the #1333. ←This will have to be changed!
Due to the fact that these pull requests combined would have been too large for a review, they have been split into two.

Details

As a result of the previous PR, changes have been made to the API and EntityManager classes.
These changes created a great opportunity to declutter / tidy up the code of these classes.
This pull request consists of the code cleanup and refactoring. Many of the changes introduced are just changes to the order of functions inside the implementation file to keep them grouped by functionality and consistent with the header file.

Some other minor changes have been introduced as well, like the addition of the ostream_helpers.cpp.

What is more, the functions EntityManager::spawnEntity and (most importantly) API::spawn have been modified to return the Entity object pointer:

template <typename PoseType, typename ParamsType>
auto spawn(
const std::string & name, const PoseType & pose, const ParamsType & parameters,
const std::string & behavior = "", const std::string & model3d = "")
-> std::shared_ptr<entity::EntityBase>

This change has been applied in the whole codebase, which includes multiple cpp mock scenarios.

References

INTERNAL LINK

Destructive Changes

Known Limitations

dmoszynski and others added 13 commits July 2, 2024 13:09
…o RJD-1057-remove-functions-forwarded-to-entity-base

Signed-off-by: Mateusz Palczuk <[email protected]>
…ed-to-entity-base' into RJD-1057-remove-functions-forwarded-to-entity-base

Signed-off-by: Mateusz Palczuk <[email protected]>
…o RJD-1057-remove-functions-forwarded-to-entity-base

Signed-off-by: Mateusz Palczuk <[email protected]>
Signed-off-by: Mateusz Palczuk <[email protected]>
…le' into RJD-1057-remove-functions-forwarded-to-entity-base-with-middle

Signed-off-by: Mateusz Palczuk <[email protected]>
@dmoszynski dmoszynski self-assigned this Jul 31, 2024
…le' into RJD-1057-remove-functions-forwarded-to-entity-base-with-middle

Signed-off-by: Mateusz Palczuk <[email protected]>
@TauTheLepton TauTheLepton force-pushed the RJD-1057-remove-functions-forwarded-to-entity-base-refactor branch from c9057f9 to ff759fe Compare July 31, 2024 14:16
@yamacir-kit yamacir-kit deleted the branch RJD-1057-remove-functions-forwarded-to-entity-base-middle September 18, 2024 01:42
@yamacir-kit yamacir-kit deleted the RJD-1057-remove-functions-forwarded-to-entity-base-refactor branch September 18, 2024 01:43
@TauTheLepton TauTheLepton restored the RJD-1057-remove-functions-forwarded-to-entity-base-refactor branch October 2, 2024 07:32
@TauTheLepton TauTheLepton reopened this Oct 2, 2024
TauTheLepton and others added 3 commits October 3, 2024 16:43
…le' into RJD-1057-remove-functions-forwarded-to-entity-base-refactor

Signed-off-by: Mateusz Palczuk <[email protected]>
…ded-to-entity-base-middle' into RJD-1057-remove-functions-forwarded-to-entity-base-refactor
…le' into RJD-1057-remove-functions-forwarded-to-entity-base-refactor
@TauTheLepton TauTheLepton self-assigned this Oct 15, 2024
@dmoszynski dmoszynski changed the title [tmp] Remove non-API member functions: EntityManager’s member functions forwarded to EntityBase (2/2) [tmp] RJD-1057 (4/5): Remove non-API member functions: EntityManager’s member functions forwarded to EntityBase (2/2) Oct 15, 2024
…le' into RJD-1057-remove-functions-forwarded-to-entity-base-refactor
…le' into RJD-1057-remove-functions-forwarded-to-entity-base-refactor
…le' into RJD-1057-remove-functions-forwarded-to-entity-base-refactor
Copy link

sonarcloud bot commented Oct 16, 2024

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants