Link Search Menu Expand Document

Game_Enemy.d overview


Table of contents


utils

Game_Enemy (class)

Game_Enemy

The game object class for an enemy.

Signature

export declare class Game_Enemy {
  constructor(enemyId: EnemyID, x: number, y: number)
}

initMembers (method)

Signature

initMembers(): void

setup (method)

Signature

setup(enemyId: EnemyID, x: number, y: number): void

isEnemy (method)

Signature

isEnemy(): boolean

friendsUnit (method)

Signature

friendsUnit(): import("./Game_Troop").Game_Troop

opponentsUnit (method)

Signature

opponentsUnit(): import("./Game_Party").Game_Party

index (method)

Signature

index(): number

isBattleMember (method)

Signature

isBattleMember(): boolean

enemyId (method)

Signature

enemyId(): number

enemy (method)

Signature

enemy(): import("../data").DataEnemy

traitObjects (method)

Signature

traitObjects(): {
    traits: import("../data").Trait[]
  }[]

paramBase (method)

Signature

paramBase(paramId: ParamID): number

exp (method)

Signature

exp(): number

gold (method)

Signature

gold(): number

makeDropItems (method)

Signature

makeDropItems(): DataItemBase[]

dropItemRate (method)

Signature

dropItemRate(): 1 | 2

itemObject (method)

Signature

itemObject(
    kind: DropItemType,
    dataId: DataID
  ): import("../data").DataItem | import("../data").DataWeapon | import("../data").DataArmor | null

isSpriteVisible (method)

Signature

isSpriteVisible(): boolean

screenX (method)

Signature

screenX(): number

screenY (method)

Signature

screenY(): number

battlerName (method)

Signature

battlerName(): string

battlerHue (method)

Signature

battlerHue(): number

originalName (method)

Signature

originalName(): string

name (method)

Signature

name(): string

isLetterEmpty (method)

Signature

isLetterEmpty(): boolean

setLetter (method)

Signature

setLetter(letter: string): void

setPlural (method)

Signature

setPlural(plural: boolean): void

performActionStart (method)

Signature

performActionStart(action: Game_Action): void

performAction (method)

Signature

performAction(action: Game_Action): void

performActionEnd (method)

Signature

performActionEnd(): void

performDamage (method)

Signature

performDamage(): void

performCollapse (method)

Signature

performCollapse(): void

transform (method)

Signature

transform(enemyId: EnemyID): void

meetsCondition (method)

Signature

meetsCondition(action: EnemyAction): boolean

meetsTurnCondition (method)

Signature

meetsTurnCondition(param1: number, param2: number): boolean

meetsHpCondition (method)

Signature

meetsHpCondition(param1: number, param2: number): boolean

meetsMpCondition (method)

Signature

meetsMpCondition(param1: number, param2: number): boolean

meetsStateCondition (method)

Signature

meetsStateCondition(param: StateID): boolean

meetsPartyLevelCondition (method)

Signature

meetsPartyLevelCondition(param: number): boolean

meetsSwitchCondition (method)

Signature

meetsSwitchCondition(param: SwitchID): boolean

isActionValid (method)

Signature

isActionValid(action: EnemyAction): boolean

selectAction (method)

Signature

selectAction(actionList: EnemyAction[], ratingZero: number): EnemyAction | null | undefined

selectAllActions (method)

Signature

selectAllActions(actionList: EnemyAction[]): void

makeActions (method)

Signature

makeActions(): void

_enemyId (property)

Signature

_enemyId: number

_letter (property)

Signature

_letter: string

_plural (property)

Signature

_plural: boolean

_screenX (property)

Signature

_screenX: number

_screenY (property)

Signature

_screenY: number