09-10-2014, 11:43 PM
I'd keep the pathfinder as a separate class. That way it can be made in to a static member of the mobs classes and the setup only needs to be done once per mob type rather than once per mob. As for access to the world, could we make it so that the class passed to the pathfinder does not have to be a cWorld so the the pathfinder is testable? Either by templating the pathfinder class or by using an interface class?