pda
jvm
core
/
net.artux.pda.map.ecs.battle
/
BulletComponent
Bullet
Component
open
class
BulletComponent
:
Component
Members
Constructors
Bullet
Component
Link copied to clipboard
constructor
(
)
constructor
(
author
:
Entity
,
target
:
Entity
,
targetPosition
:
Vector2
,
damage
:
Float
)
constructor
(
author
:
Entity
,
targetPosition
:
Vector2
,
damage
:
Float
)
Properties
author
Link copied to clipboard
open
val
author
:
Entity
damage
Link copied to clipboard
open
val
damage
:
Float
last
Dst
To
Target
Link copied to clipboard
open
var
lastDstToTarget
:
Float
target
Link copied to clipboard
open
val
target
:
Entity
target
Position
Link copied to clipboard
open
val
targetPosition
:
Vector2
Functions
is
Free
Link copied to clipboard
open
fun
isFree
(
)
:
Boolean
update
Link copied to clipboard
open
fun
update
(
author
:
Entity
,
targetPosition
:
Vector2
,
damage
:
Float
)
open
fun
update
(
author
:
Entity
,
target
:
Entity
,
targetPosition
:
Vector2
,
damage
:
Float
)