Skip to content
This repository has been archived by the owner on Aug 7, 2024. It is now read-only.

Game Objects

Olaf Szmidt edited this page Sep 15, 2017 · 19 revisions

Note: Each type of object has its detailed Wiki.

The avatar is an interface between the worker and the managers in the simulation. It also provides a nice abstraction for what the simulation perceives as a 'user'. The avatar related functionality is grouped inside the avatar folder.

An action is a pair (avatar, location). The action is register onto the WorldMap by being appended to a cell.

The action is processed by calling the apply function.

  • if the action is legal it is applied
  • if not it is rejected

A pickup is an object that is automatically grabbed by avatars in the same cell as the pickup. The pickup gets destroyed and generates an effect it is grabbed. An effect is an object that encapsulates a function that gets applied to an avatar on each turn. (see Turn Manager)

Clone this wiki locally