Class: RPG::Troop::Member
- Inherits:
-
Object
- Object
- RPG::Troop::Member
- 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
-
#enemy_id ⇒ Object
Returns the value of attribute enemy_id.
-
#hidden ⇒ Object
Returns the value of attribute hidden.
-
#immortal ⇒ Object
Returns the value of attribute immortal.
-
#x ⇒ Object
Returns the value of attribute x.
-
#y ⇒ Object
Returns the value of attribute y.
Instance Method Summary collapse
-
#initialize ⇒ Member
constructor
A new instance of Member.
Methods included from RgssDb::JsonableConstructor
Methods included from RgssDb::Jsonable
Constructor Details
#initialize ⇒ Member
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_id ⇒ Object
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 |
#hidden ⇒ Object
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 |
#immortal ⇒ Object
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 |
#x ⇒ Object
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 |
#y ⇒ Object
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 |