Class: Game_Unit

Game_Unit()

new Game_Unit()

The superclass of Game_Party and Game_Troop.

Methods

agility() → {Number}

Returns the agility of the unit.
Returns:
Type
Number

aliveMembers() → {Array.<Game_Battler>}

Returns the list of alive battlers.
Returns:
Type
Array.<Game_Battler>

clearActions()

Clears the unit's actions.

clearResults()

Clears the action results.

deadMembers() → {Array.<Game_Battler>}

Returns the list of dead battlers.
Returns:
Type
Array.<Game_Battler>

inBattle() → {Boolean}

Returns true if unit is in battle.
Returns:
Type
Boolean

initialize()

isAllDead() → {Boolean}

Returns true if all members of the unit are dead.
Returns:
Type
Boolean

makeActions()

Creates the action's of the game unit.

members() → {Array.<Game_Battler>}

Returns the list of battlers.
Returns:
Type
Array.<Game_Battler>

movableMembers() → {Array.<Game_Battler>}

Returns the list of movable members.
Returns:
Type
Array.<Game_Battler>

onBattleEnd()

Handler for when battle has ended.

onBattleStart()

Handler for when battle is started.

randomDeadTarget() → {Game_Battler}

Returns a random dead target from the game unit.
Returns:
Type
Game_Battler

randomTarget() → {Game_Battler}

Returns a random target from the game unit.
Returns:
Type
Game_Battler

select(activeMember)

Selects a member of the unit given a battler.
Parameters:
Name Type Description
activeMember Game_Battler

smoothDeadTarget(index) → {Game_Battler}

Parameters:
Name Type Description
index Number
Returns:
Type
Game_Battler

smoothTarget(index) → {Game_Battler}

Parameters:
Name Type Description
index Number
Returns:
Type
Game_Battler

substituteBattler() → {Game_Battler}

Returns:
Type
Game_Battler

tgrSum() → {Number}

Returns:
Type
Number