Class in reactor_windows.js

Window_BattleEnemy

17 functions in 6 groups · hide internal

Windows draw every menu, list and status panel.

Familiar territory. Window_BattleEnemy keeps the RPG Maker MZ API, so existing MZ knowledge, tutorials and plugin code apply. Reactor's additions are marked with descriptions below.

Quick Reference

Setup & Creation 1

initialize() Sets up a new instance.

Getting Information 2

maxCols() The maximum cols.
maxItems() The maximum items.

Actions 3

show() Show.
hide() Hide.
select() Select.

Events, Commands & Input 1

processTouch() Handles the touch.

Updating & Drawing 2

drawItem() Draws the item.
refresh() Refresh.

Other 8

enemy() Enemy.
enemyIndex() Enemy index.
validTargets() The battlers this window offers.
byScreenX() Battlers left to right on screen (then top to bottom); the list's order when targets are picked on the field.
cursorRight() Picked on the battlefield, every arrow steps round the targets: right and down to the next, left and up to th…
cursorLeft() Cursor left.
cursorDown() Cursor down.
cursorUp() Cursor up.

Setup & Creation

initialize

method source
Window_BattleEnemy.prototype.initialize(rect)

Sets up a new instance. (Same as the RPG Maker MZ method of this name.)

Getting Information

maxCols

method source
Window_BattleEnemy.prototype.maxCols()

The maximum cols. (Same as the RPG Maker MZ method of this name.)

maxItems

method source
Window_BattleEnemy.prototype.maxItems()

The maximum items. (Same as the RPG Maker MZ method of this name.)

Actions

show

method source
Window_BattleEnemy.prototype.show()

Show. (Same as the RPG Maker MZ method of this name.)

hide

method source
Window_BattleEnemy.prototype.hide()

Hide. (Same as the RPG Maker MZ method of this name.)

select

method source
Window_BattleEnemy.prototype.select(index)

Select. (Same as the RPG Maker MZ method of this name.)

Events, Commands & Input

processTouch

method source
Window_BattleEnemy.prototype.processTouch()

Handles the touch. (Same as the RPG Maker MZ method of this name.)

Updating & Drawing

drawItem

method source
Window_BattleEnemy.prototype.drawItem(index)

Draws the item. (Same as the RPG Maker MZ method of this name.)

refresh

method source
Window_BattleEnemy.prototype.refresh()

Refresh. (Same as the RPG Maker MZ method of this name.)

Other

enemy

method source
Window_BattleEnemy.prototype.enemy()

Enemy. (Same as the RPG Maker MZ method of this name.)

enemyIndex

method source
Window_BattleEnemy.prototype.enemyIndex()

Enemy index. (Same as the RPG Maker MZ method of this name.)

validTargets

method source
Window_BattleEnemy.prototype.validTargets()

The battlers this window offers.

Details

The battlers this window offers. Split out of refresh so that the either-side scopes have a single place to widen the pool, and so a plugin can replace the pool without also owning the redraw.

byScreenX

static source
Window_BattleEnemy.byScreenX(battlers)

Battlers left to right on screen (then top to bottom); the list's order when targets are picked on the field.

cursorRight

method source
Window_BattleEnemy.prototype.cursorRight(wrap)

Picked on the battlefield, every arrow steps round the targets: right and down to the next, left and up to the one before, wrapping at either end.

cursorLeft

method source
Window_BattleEnemy.prototype.cursorLeft(wrap)

Cursor left. (Same as the RPG Maker MZ method of this name.)

cursorDown

method source
Window_BattleEnemy.prototype.cursorDown(wrap)

Cursor down. (Same as the RPG Maker MZ method of this name.)

cursorUp

method source
Window_BattleEnemy.prototype.cursorUp(wrap)

Cursor up. (Same as the RPG Maker MZ method of this name.)