Skip to content

Releases: Trisfald/weasel

v0.3.1

17 Feb 21:43
Compare
Choose a tag to compare

Features

Entities struct.

New methods to retrieve an iterator over all actors or characters.

Improvements to RoundsRules.

The new on_actor_removed method in RoundsRules lets you clean up the RoundsModel when an actor is removed from the battle.
The event RemoveCreature implicitly calls on_actor_removed.

New examples

Example to show how to implement RoundsRules to decide the acting order based on a creature's statistic.

v0.3.0

15 Feb 23:29
Compare
Choose a tag to compare

Features

AlterSpace event.

Event to alter the current space model of a battle. For instance, you can make places inaccessible or change the battlefield's shape.

Improvements to SpaceRules.

SpaceRules didn't provide an sure way to register which entity was going to occupy a position. It's now possible because move_entity accepts a PositionClaim that contains either the entity itself or its id (in the case the entity is being created).

It was also impossible to free the position occupied by an entity when the latter died. It is fixed by changing the signature of move_entity to take an optional position.
RemoveCreature now does automatically free the creature's last position.

Improvements to RoundsRules.

The two methods on_start and on_end now take as arguments the objects holding the state of all entities and of the space dimension. This gives more context which in turn allow to define more elaborated strategies to decide the initiative of actors.

New examples

Example showing different ways to manipulate the space model.

v0.2.0

14 Feb 23:45
Compare
Choose a tag to compare

Features

RemoveTeam event.

You can now remove teams from battle with this event.

RegenerateStatistics and RegenerateAbilities events.

These two events provide a way to add or remove abilities and statistics to creatures.

EntityId now implements Copy.

It's not needed anymore to clone EntityId objects if CreatureId implements Copy.

New examples

An example showing how to use event sinks.
Example to demonstrate how to create user defined events and metrics.