BonfireWidget class

Inheritance

Constructors

BonfireWidget({Key? key, required MapGame map, JoystickController? joystick, Player? player, GameInterface? interface, List<Enemy>? enemies, List<GameDecoration>? decorations, GameController? gameController, GameBackground? background, bool constructionMode = false, bool showCollisionArea = false, bool showFPS = false, Color? constructionModeColor, Color? collisionAreaColor, Color? lightingColorGame, GameColorFilter? colorFilter, List<GameComponent>? components, Map<String, OverlayWidgetBuilder<BonfireGame>>? overlayBuilderMap, List<String>? initialActiveOverlays, CameraConfig? cameraConfig, TapInGame? onTapDown, TapInGame? onTapUp, ValueChanged<BonfireGame>? onReady})
const

Properties

background → GameBackground?
final
cameraConfig → CameraConfig?
final
collisionAreaColor → Color?
Color of the collision area when showCollisionArea is true
final
colorFilter → GameColorFilter?
final
components → List<GameComponent>?
final
constructionMode → bool
Used to show grid in the map and facilitate the construction and testing of the map
final
constructionModeColor → Color?
Color grid when constructionMode is true
final
decorations → List<GameDecoration>?
final
enemies → List<Enemy>?
final
gameController → GameController?
final
hashCode → int
The hash code for this object.
no setterinherited
initialActiveOverlays → List<String>?
final
interface → GameInterface?
The way you cand raw things like life bars, stamina and settings. In another words, anything that you may add to the interface to the game.
final
joystick → JoystickController?
The player-controlling component.
final
key → Key?
Controls how one widget replaces another widget in the tree.
finalinherited
lightingColorGame → Color?
Used to configure lighting in the game
final
map → MapGame
Represents a map (or world) where the game occurs.
final
onReady → ValueChanged<BonfireGame>?
final
onTapDown → TapInGame?
final
onTapUp → TapInGame?
final
overlayBuilderMap → Map<String, OverlayWidgetBuilder<BonfireGame>>?
final
player → Player?
Represents the character controlled by the user in the game. Instances of this class has actions and movements ready to be used and configured.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
showCollisionArea → bool
Used to draw area collision in objects.
final
showFPS → bool
Used to show in the interface the FPS.
final

Methods

createElement() → StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() → _BonfireWidgetState
Creates the mutable state for this widget at a given location in the tree.
override
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