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. |
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 sourceWindow_BattleEnemy.prototype.initialize(rect)
Sets up a new instance. (Same as the RPG Maker MZ method of this name.)
Getting Information
maxCols
method sourceWindow_BattleEnemy.prototype.maxCols()
The maximum cols. (Same as the RPG Maker MZ method of this name.)
maxItems
method sourceWindow_BattleEnemy.prototype.maxItems()
The maximum items. (Same as the RPG Maker MZ method of this name.)
Actions
show
method sourceWindow_BattleEnemy.prototype.show()
Show. (Same as the RPG Maker MZ method of this name.)
hide
method sourceWindow_BattleEnemy.prototype.hide()
Hide. (Same as the RPG Maker MZ method of this name.)
select
method sourceWindow_BattleEnemy.prototype.select(index)
Select. (Same as the RPG Maker MZ method of this name.)
Events, Commands & Input
processTouch
method sourceWindow_BattleEnemy.prototype.processTouch()
Handles the touch. (Same as the RPG Maker MZ method of this name.)
Updating & Drawing
drawItem
method sourceWindow_BattleEnemy.prototype.drawItem(index)
Draws the item. (Same as the RPG Maker MZ method of this name.)
refresh
method sourceWindow_BattleEnemy.prototype.refresh()
Refresh. (Same as the RPG Maker MZ method of this name.)
Other
enemy
method sourceWindow_BattleEnemy.prototype.enemy()
Enemy. (Same as the RPG Maker MZ method of this name.)
enemyIndex
method sourceWindow_BattleEnemy.prototype.enemyIndex()
Enemy index. (Same as the RPG Maker MZ method of this name.)
validTargets
method sourceWindow_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 sourceWindow_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 sourceWindow_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 sourceWindow_BattleEnemy.prototype.cursorLeft(wrap)
Cursor left. (Same as the RPG Maker MZ method of this name.)
cursorDown
method sourceWindow_BattleEnemy.prototype.cursorDown(wrap)
Cursor down. (Same as the RPG Maker MZ method of this name.)
cursorUp
method sourceWindow_BattleEnemy.prototype.cursorUp(wrap)
Cursor up. (Same as the RPG Maker MZ method of this name.)