Thank you, this essay is a little above my experience, but I'm going chew over it - and try to bring it back around to my issues. Thank you for (what I consider) a vote of confidence in my ability to...
Type: Posts; User: M.Richard Tober
Thank you, this essay is a little above my experience, but I'm going chew over it - and try to bring it back around to my issues. Thank you for (what I consider) a vote of confidence in my ability to...
Go easy on me, but -
virtual void Update() {};
Is from Entity::Actor (actor.h), the parent class.
In Actor::Player (player.h) it becomes:
virtual void Update(Actor &Player);...
I gave it a go and got...
/storage/Projects/Recent/Refactored Game/src/main.cpp|159|error: no matching function for call to 'Actor::Update(std::vector<Actor*>::iterator&)’|
Now, reading the...
The two vectors contain pointers of base class actor, which are used to point to members of two derived classes (player and enemy) and polymorphically call the Update function from the current Enemy,...