Box class

Boxes can be pushed by the player if there is nothing behind them.

Inheritance

Constructors

Box(World world, int x, int y)
Constructor.

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
image BitmapData
Returns this actor's current image.
read-only, override
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
world World
A reference to the world.
read / write, inherited
x int
The horizontal position.
read / write, inherited
y int
The vertical position.
read / write, inherited
zIndex int
The stack order of this element.
read-only, override

Methods

canMove(Direction direction) bool
Returns true if this box can be moved to the next field.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
A string representation of this object. [...]
inherited

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited