Class: Game_Actor

Inherits:
Game_Battler show all
Defined in:
docs/00600_Script_RMXP.rb

Overview

Describe a player

Instance Attribute Summary collapse

Attributes inherited from Game_Battler

#animation_hit, #animation_id, #battler_hue, #blink, #critical, #damage, #hidden, #hp, #sp, #states, #white_flash

Instance Method Summary collapse

Methods inherited from Game_Battler

#agi, #atk, #dead?, #dex, #eva, #exist?, #hit, #int, #mdef, #pdef, #str

Constructor Details

#initialize(actor_id) ⇒ Game_Actor

Initialize a new Game_Actor

Parameters:

  • actor_id (Integer)

    the id of the actor in the database



197
198
# File 'docs/00600_Script_RMXP.rb', line 197

def initialize(actor_id)
end

Instance Attribute Details

#battler_name (readonly)

Returns the value of attribute battler_name.



191
192
193
# File 'docs/00600_Script_RMXP.rb', line 191

def battler_name
  @battler_name
end

#character_hue (readonly)

Returns the value of attribute character_hue.



190
191
192
# File 'docs/00600_Script_RMXP.rb', line 190

def character_hue
  @character_hue
end

#character_name (readonly)

Returns the value of attribute character_name.



189
190
191
# File 'docs/00600_Script_RMXP.rb', line 189

def character_name
  @character_name
end

#exp

Returns the value of attribute exp.



193
194
195
# File 'docs/00600_Script_RMXP.rb', line 193

def exp
  @exp
end

#level

Returns the value of attribute level.



192
193
194
# File 'docs/00600_Script_RMXP.rb', line 192

def level
  @level
end

#name

Returns the value of attribute name.



188
189
190
# File 'docs/00600_Script_RMXP.rb', line 188

def name
  @name
end

#skills (readonly)

Returns the value of attribute skills.



194
195
196
# File 'docs/00600_Script_RMXP.rb', line 194

def skills
  @skills
end

Instance Method Details

#idInteger

id of the Game_Actor in the database

Returns:

  • (Integer)


205
206
# File 'docs/00600_Script_RMXP.rb', line 205

def id
end

#indexInteger?

index of the Game_Actor in the $game_party.

Returns:

  • (Integer, nil)


209
210
# File 'docs/00600_Script_RMXP.rb', line 209

def index
end

#screen_x

Deprecated.

will be removed.



229
230
# File 'docs/00600_Script_RMXP.rb', line 229

def screen_x
end

#screen_y

Deprecated.

will be removed.



232
233
# File 'docs/00600_Script_RMXP.rb', line 232

def screen_y
end

#screen_z

Deprecated.

will be removed.



235
236
# File 'docs/00600_Script_RMXP.rb', line 235

def screen_z
end

#set_graphic(character_name, character_hue, battler_name, battler_hue)

Update the graphics of the Game_Actor

Parameters:

  • character_name (String)

    name of the character in Graphics/Characters

  • character_hue (0)

    ignored by the cache

  • battler_name (String)

    name of the battler in Graphics/Battlers

  • battler_hue (0)

    ignored by the cache



226
227
# File 'docs/00600_Script_RMXP.rb', line 226

def set_graphic(character_name, character_hue, battler_name, battler_hue)
end

#setup(actor_id)

setup the Game_Actor object

Parameters:

  • actor_id (Integer)

    the id of the actor in the database



201
202
# File 'docs/00600_Script_RMXP.rb', line 201

def setup(actor_id)
end