Class: RPG::Troop::Member

Inherits:
Object
  • Object
show all
Extended by:
RgssDb::JsonableConstructor
Includes:
RgssDb::Jsonable
Defined in:
lib/rgss_db/model/rpg_maker_data/vx/rpg/troop_member.rb,
lib/rgss_db/model/rpg_maker_data/xp/rpg/troop_member.rb,
lib/rgss_db/model/rpg_maker_data/vx_ace/rpg/troop_member.rb

Overview

The data class for enemy troop members.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from RgssDb::JsonableConstructor

json_create, json_new

Methods included from RgssDb::Jsonable

#as_json, #to_json

Constructor Details

#initializeMember

Returns a new instance of Member.



12
13
14
15
16
17
18
# File 'lib/rgss_db/model/rpg_maker_data/vx/rpg/troop_member.rb', line 12

def initialize
  @enemy_id = 1
  @x = 0
  @y = 0
  @hidden = false
  @immortal = false
end

Instance Attribute Details

#enemy_idObject

Returns the value of attribute enemy_id.



20
21
22
# File 'lib/rgss_db/model/rpg_maker_data/vx/rpg/troop_member.rb', line 20

def enemy_id
  @enemy_id
end

#hiddenObject

Returns the value of attribute hidden.



20
21
22
# File 'lib/rgss_db/model/rpg_maker_data/vx/rpg/troop_member.rb', line 20

def hidden
  @hidden
end

#immortalObject

Returns the value of attribute immortal.



20
21
22
# File 'lib/rgss_db/model/rpg_maker_data/vx/rpg/troop_member.rb', line 20

def immortal
  @immortal
end

#xObject

Returns the value of attribute x.



20
21
22
# File 'lib/rgss_db/model/rpg_maker_data/vx/rpg/troop_member.rb', line 20

def x
  @x
end

#yObject

Returns the value of attribute y.



20
21
22
# File 'lib/rgss_db/model/rpg_maker_data/vx/rpg/troop_member.rb', line 20

def y
  @y
end