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

Implement an empty Update() method inside the BaseObject class and implement one in GameObject #9

Closed
Artanisx opened this issue Jan 22, 2020 · 1 comment
Assignees
Labels
enhancement New feature or request graphic Related to the Graphic module

Comments

@Artanisx
Copy link
Owner

With an empty virtual void Update() method in the baseobject class we make sure we can call Update() to all object (wheter they have an implementation or not) ensuring compatibility with foreach and the like.

Then implement a basic Update() method inside GameObject that uses Velocity to update the position of the GameObject. Consider if it's needed to add a further speed float to further modify it like Velocity * speed (or for instance to quickly stop an object from moving with speed = 0).

@Artanisx Artanisx added bug Something isn't working enhancement New feature or request labels Jan 22, 2020
@Artanisx Artanisx self-assigned this Jan 22, 2020
@Artanisx Artanisx added graphic Related to the Graphic module and removed bug Something isn't working labels Jan 22, 2020
@Artanisx
Copy link
Owner Author

Done!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request graphic Related to the Graphic module
Projects
None yet
Development

No branches or pull requests

1 participant