Flagger

Flagger

Sets a flag on the player when a matching color event is received.

Typical use: mark the player as having completed a task or entered a region — e.g. set the "poisoned" flag when the player steps on a trap that fires a color event.

Constructor

new Flagger()

Source:

Extends

Classes

Flagger

Methods

getProxiedTerrain()

Description:
  • Return the terrain being wrapped (TerrainProxy interface).

Source:
Overrides:

onColorEventInternal()

Description:
  • Adds Flagger#flag to the player when the received color matches Flagger#color. Skips silently when there is no player in the event.

Source: