AutomapView class
The automap, drawn: floor where the player has walked, walls where it stopped, an arrow where they stand.
A CustomPainter over the level's cells, centred on the player and
turned so that up on the screen is the way they face — the map a player
reads mid-fight, not the one they study. A cell is a rectangle; a level of
forty metres in quarter-metre cells is twenty-five thousand of them, of
which the painter draws only the revealed ones and only those that fall
on the screen, which is a few hundred. Nothing is cached, because a map
that is open is a map that is changing.
What it does not draw: monsters, items, the exit. A map that shows the monsters is a different game, and the decision belongs to the game.
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatelessWidget
- AutomapView
Constructors
Properties
- automap → Automap
-
final
- backdrop → Color
-
final
- floor → Color
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- metresAcross → double
-
How many metres of level the shorter side of the view shows.
final
- player → Color
-
final
- position → Vector3
-
Where the player is, in world space; the map is centred here.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- wall → Color
-
final
- yaw → double
-
Which way the player faces, radians about Y; the map turns so this is
up on the screen.
final
Methods
-
build(
BuildContext context) → Widget -
Describes the part of the user interface represented by this widget.
override
-
createElement(
) → StatelessElement -
Creates a StatelessElement to manage this widget's location in the tree.
inherited
-
debugDescribeChildren(
) → List< DiagnosticsNode> -
Returns a list of DiagnosticsNode objects describing this node's
children.
inherited
-
debugFillProperties(
DiagnosticPropertiesBuilder properties) → void -
Add additional properties associated with the node.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toDiagnosticsNode(
{String? name, DiagnosticsTreeStyle? style}) → DiagnosticsNode -
Returns a debug representation of the object that is used by debugging
tools and by DiagnosticsNode.toStringDeep.
inherited
-
toString(
{DiagnosticLevel minLevel = DiagnosticLevel.info}) → String -
A string representation of this object.
inherited
-
toStringDeep(
{String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug, int wrapWidth = 65}) → String -
Returns a string representation of this node and its descendants.
inherited
-
toStringShallow(
{String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) → String -
Returns a one-line detailed description of the object.
inherited
-
toStringShort(
) → String -
A short, textual description of this widget.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited