The Follow class is a motion class which allows actors to follow other actors.
-
Sets up the Follow class. If specified, it assigns the parameters to their corresponding properties.
-
Moves the client actor towards the who actor.
-
Just an empty place holder method in Follow.
-
If specified, it sets the x and y properties to newX and newY. Otherwise, it sets the x and y properties to the who's coordinates.
-
Returns TRUE if distance to the who is less than or equal to the distance property. Otherwise, it returns FALSE.