Tree class

A tree is a barrier for the player. The player can neither move through nor push trees.

Inheritance

Constructors

Tree(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

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