Skip to main content

Class: TwoSidedTrait

traits.TwoSidedTrait

Adds faceUp property and flip*() methods. The entity now has two sides. Like a card or coin.

Constructors

constructor

new TwoSidedTrait()

TwoSidedTrait Properties

faceUp

faceUp: boolean

TwoSidedTrait Methods

flip

flip(): void

Flip the entity on to the other side

Returns

void


flipDown

flipDown(): void

Flip the entity to reveal its back side

Returns

void


flipUp

flipUp(): void

Flip the entity to reveal its face

Returns

void