Class: Spriteset_Battle

Spriteset_Battle()

new Spriteset_Battle()

The set of sprites on the battle screen.

Extends

Methods

autotileType(z) → {Number}

Parameters:
Name Type Description
z Number
Returns:
Type
Number

battleback1Bitmap() → {Bitmap}

Returns battleb ack 2 of the battle spriteset.
Returns:
Instance of the Bitmap class.
Type
Bitmap

battleback1Name() → {String}

Returns:
Name of battleback 1 bitmap.
Type
String

battleback2Bitmap() → {Bitmap}

Returns battleback 2 of the battle spriteset.
Returns:
Instance of the Bitmap class.
Type
Bitmap

battleback2Name() → {String}

Returns:
Name of battleback 2 bitmap.
Type
String

battlerSprites() → {Array.<Sprite_Battler>}

Returns all battler sprites on the battle spriteset.
Returns:
Type
Array.<Sprite_Battler>

compareEnemySprite(a, b) → {Number}

Parameters:
Name Type Description
a Sprite_Enemy
b Sprite_Enemy
Returns:
Type
Number

createActors()

Creates sprite actors for the battle spriteset.

createBackground()

Creates the background of the battle spriteset.

createBaseSprite()

Create the base sprite.
Inherited From:

createBattleback()

Creates the battleback of the battle spriteset.

createBattleField()

Creates the battlefield of the battle spriteset.

createCanvasToneChanger()

Creates the Canvas tone.
Inherited From:

createEnemies()

Creates sprite enemies for the battle spriteset.

createLowerLayer()

Overrides:

createPictures()

Creates a new sprite picture on the spritesetb ase.
Inherited From:

createScreenSprites()

Creates the screen sprite.
Inherited From:

createTimer()

Creates a new Sprite timer on the spriteset base.
Inherited From:

createToneChanger()

Creates the tone changer sprite.
Inherited From:

createUpperLayer()

Creates the upper layer including the pictures, timer, and screen sprites.
Inherited From:

createWebGLToneChanger()

Creates the WebGL toner.
Inherited From:

defaultBattleback1Name() → {String}

Returns:
Name of the default battleback 1 name.
Type
String

defaultBattleback2Name() → {String}

Returns:
Name of the default battleback 2 name.
Type
String

initialize()

Overrides:

isAnimationPlaying() → {Boolean}

Returns true if animation is playing on the battle spriteset.
Returns:
Type
Boolean

isAnyoneMoving() → {Boolean}

Returns true if any sprite actor or enemy is moving.
Returns:
Representing whether any battle participants are moving.
Type
Boolean

isBusy() → {Boolean}

Returns true if the battle spriteset is busy.
Returns:
Type
Boolean

isEffecting() → {Boolean}

Returns:
Type
Boolean

locateBattleback()

Locates the battleback and adjusts the coordinates of the battleback.

normalBattleback1Name() → {String}

Returns:
Name of the normal battleback 1 bitmap.
Type
String

normalBattleback2Name() → {String}

Returns:
Name of the normal battleback 2 bitmap.
Type
String

overworldBattleback1Name() → {String}

Returns the battleback 1 name as a string.
Returns:
Name of overworld battleback 1 bitmap.
Type
String

overworldBattleback2Name() → {String}

Returns the battleback 2 name as a string.
Returns:
Name of overworld battleback 2 bitmap.
Type
String

shipBattleback1Name() → {String}

Returns:
Name of the ship battleback 1 bitmap.
Type
String

shipBattleback2Name() → {String}

Returns:
Name of the ship battleback 2 bitmap.
Type
String

terrainBattleback1Name(type) → {String}

Given the specified terrtain type, return the battleback 1 name.
Parameters:
Name Type Description
type Number Terrain type.
Returns:
Name of the terrtain battleback 1 bitmap.
Type
String

terrainBattleback2Name(type) → {String}

Given the specified terrain type, return the battleback 2 name.
Parameters:
Name Type Description
type Number Terrain type.
Returns:
Name of the terrain battleback 2 bitmap.
Type
String

update()

Overrides:

updateActors()

Updates the actor sprites on the battle spriteset.

updateBattleback()

Updates the battleback of the battle spriteset.

updateCanvasToneChanger()

Updates the Canvas tone changer.
Inherited From:

updatePosition()

Updates the position of spriteset base.
Inherited From:

updateScreenSprites()

Updates the screen sprites on the spriteset base.
Inherited From:

updateToneChanger()

Inherited From:

updateWebGLToneChanger()

Updates the WebGL tone changer.
Inherited From: