Navigation Menu

Skip to content

Information about events happened in the game

Ahmed Abdel Samea Khalifa edited this page Feb 15, 2016 · 1 revision

It is also possible to retrieve the events (collisions) that happened during the game up to this point in time. This also includes collisions of sprites created by the avatar (such as shots, or swords) with other sprites:

State Observation functions Description
TreeSet getEventsHistory() This method retrieves a list of events that happened so far in the game. In this context, events are collisions of the avatar with other sprites in the game. Additionally, the list also contains information about collisions of a sprite created by the avatar (usually by using the action Types.ACTIONS.ACTION_USE) with other sprites. The list is ordered asc. by game step.

Table of Contents:

Clone this wiki locally