Skip to content

What is a Tag?

Elliot Ford edited this page May 7, 2015 · 9 revisions

Overview

Tags are used to represent internal state information (and these stored within a Taggable). These are intended to be used mainly by custom JALSE implementations (specifically Entity where type proxies cannot be cast to concrete classes).

Tags currently in use

The default JALSE implementations currently only use the following Tags:

What is a Taggable?

A Taggable is a Tag store providing read only access. This is so the Tags can be read and not manipulated as they represent state. See below for usage:

Taggable taggable = /* Some Taggable */

// Set to iterate through
Set<Tag> tags = taggable.getTags();

// Stream to process
Stream<Tag> tagStream = taggable.streamTags();

Additional information

TagTypeSet is a Set implementation that provides a means to manage Tags by type. This can be used to create your own Taggable implementation.

Clone this wiki locally