BonfireTiledWidget class

Inheritance

Constructors

BonfireTiledWidget({Key? key, required TiledWorldMap map, JoystickController? joystick, Player? player, GameInterface? interface, GameBackground? background, bool constructionMode = false, bool showCollisionArea = false, bool showFPS = false, GameController? gameController, Color? constructionModeColor, Color? collisionAreaColor, Color? lightingColorGame, Widget? progress, CameraConfig? cameraConfig, AnimatedSwitcherTransitionBuilder transitionBuilder = AnimatedSwitcher.defaultTransitionBuilder, Duration? progressTransitionDuration, GameColorFilter? colorFilter, List<GameComponent>? components, Map<String, OverlayWidgetBuilder<BonfireGame>>? overlayBuilderMap, List<String>? initialActiveOverlays, TapInGame? onTapDown, TapInGame? onTapUp, ValueChanged<BonfireGame>? onReady})
const

Properties

background GameBackground?
Background of the game. This can be a color or custom component
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
gameController GameController?
Used to extensively control game elements
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 TiledWorldMap
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
progress Widget?
final
progressTransitionDuration Duration?
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
transitionBuilder AnimatedSwitcherTransitionBuilder
final

Methods

createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() → _BonfireTiledWidgetState
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}) 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