DFSprite class

基础精灵类

Implementers

Constructors

DFSprite({required DFPosition position, required DFSize size})
创建精灵

Properties

angle double
角度
getter/setter pair
children List<DFSprite>
子精灵
getter/setter pair
fixed bool
固定到屏幕
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
key String?
唯一标识
getter/setter pair
parent DFSprite?
相对坐标
getter/setter pair
position DFPosition
坐标 左上角是0点
getter/setter pair
recyclable bool
是否回收
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scale double
缩放比例
getter/setter pair
size DFSize
尺寸
getter/setter pair
visible bool
显示状态
getter/setter pair

Methods

addChild(DFSprite sprite) → void
增加子精灵
addChildren(List<DFSprite> sprites) → void
增加精灵 增加进来精灵才能被绘制
getCollisionShape() DFShape
碰撞形状
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
removeChild(DFSprite sprite) → void
移除子精灵
render(Canvas canvas) → void
精灵渲染
toString() String
A string representation of this object.
inherited
update(double dt) → void
精灵更新

Operators

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