UnitSize class final

How big a unit is drawn, in metres.

The drawn size, not the simulated one: Unit.radius is how much room a unit needs and this is how much of it a player sees, and a game is free to make the second larger than the first so that a crowd reads as a crowd rather than as a scatter of dots.

Constructors

UnitSize({double width = 0.8, double height = 1.2})
Builds the pair.
const

Properties

hashCode → int
The hash code for this object.
no setterinherited
height → double
How tall it stands.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
width → double
How wide the box is, along both ground axes.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited