isAlive

actual fun isAlive(entity: Entity): Boolean

Check whether an entity is alive (not destroyed).

Returns whether the given entity has been destroyed (false) or is still valid (true).

Return

true if the entity is alive, false if it has been destroyed.

Parameters

entity

The entity to check.

expect fun isAlive(entity: Entity): Boolean

Check whether an entity is alive (not destroyed).

Returns whether the given entity has been destroyed (false) or is still valid (true).

Return

true if the entity is alive, false if it has been destroyed.

Parameters

entity

The entity to check.

actual fun isAlive(entity: Entity): Boolean

Check whether an entity is alive (not destroyed).

Returns whether the given entity has been destroyed (false) or is still valid (true).

Return

true if the entity is alive, false if it has been destroyed.

Parameters

entity

The entity to check.

actual fun isAlive(entity: Entity): Boolean

Check whether an entity is alive (not destroyed).

Returns whether the given entity has been destroyed (false) or is still valid (true).

Return

true if the entity is alive, false if it has been destroyed.

Parameters

entity

The entity to check.

actual fun isAlive(entity: Entity): Boolean

Check whether an entity is alive (not destroyed).

Returns whether the given entity has been destroyed (false) or is still valid (true).

Return

true if the entity is alive, false if it has been destroyed.

Parameters

entity

The entity to check.