Adds a new mob extension plugin which creates a walk_to() method on
Mobs to allow walking to another entity (accounting for the size of the
entity) with an optional facing position.
Adds a mob-extension plugin, which allows creating modules as mixins to
be monkey-patched into the Mob class. Having a standard method of doing
this prevents confusing problems with mixin name conflicts, by allowing
the plugin to raise an error that 2 mixins with the same name exist.
Adds tests for the CollisionManager which makes sure that collision
matrices are correctly built for the following object types:
* Interactables
* Walls
* Corners
Missing from these tests are tests for blocked / bridged tiles, and
large corner walls, which can be added later. Additionally, the test
cases include ASCII illustrations of the collision grid and how it is
built / checked for a particular object or movement.
This commit implements collision detection using the map files loaded
from the cache, and adds support for modifying the collision matrices at
runtime when the game world is updated.
All checks to see if a tile is reachable should now be done via.
World#traversable, instead of Region#traversable, as the World object
can handle checking tiles across multiple regions. These are done for
the WalkingQueue and Pathfinder implementations.
Adds the ability to register region listeners with the
RegionRepository, which will register the listener with any existing
regions and cache it for any newly created regions later.
Refactors the map file loading code by importing existing code from the
Vicis cache editor project. Adds classes for decoding objects and tiles
for a given map file index. Only the new MapIndex decoder code is used
when loading GameObjects at the moment , which will later be updated.
* Adds support for short-lived entities, which are never added to the
entity sets of the region they belong in.
* Adds support for checking the number of tiles a Mob occupies.
* Adds a ProjectileBuilder class to simplify creating projectiles.
Makes sure that the steps in a path sent for a "Player Walk" message are
on the same level as the players current position while being processed
in the walking queue.
Add rules for enforcing tabs in Java, and spaces in Ruby.
Add a rule to make sure trailing whitespace is trimmed
and that no new final newline is inserted.
Add various tests around ItemOnObject messages to verify that a valid
object needs to be given as well as a valid item in order for the
message to be passed down the MessageHandlerChain.
Add a test which verifies an ObjectActionMessage is terminated if its
not within the specified distance of the player.
Additionally add a test which verifies that an ObjectActionMessage is
terminated if there is no object with the given id nearby.