Class: RPG::Troop::Member
- Inherits:
-
Object
- Object
- RPG::Troop::Member
- Defined in:
- lib/rpg/troop/member.rb
Instance Attribute Summary collapse
-
#enemy_id ⇒ Object
Returns the value of attribute enemy_id.
-
#hidden ⇒ Object
Returns the value of attribute hidden.
-
#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.
Constructor Details
#initialize ⇒ Member
Returns a new instance of Member.
4 5 6 7 8 9 |
# File 'lib/rpg/troop/member.rb', line 4 def initialize @enemy_id = 1 @x = 0 @y = 0 @hidden = false end |
Instance Attribute Details
#enemy_id ⇒ Object
Returns the value of attribute enemy_id.
10 11 12 |
# File 'lib/rpg/troop/member.rb', line 10 def enemy_id @enemy_id end |
#hidden ⇒ Object
Returns the value of attribute hidden.
13 14 15 |
# File 'lib/rpg/troop/member.rb', line 13 def hidden @hidden end |
#x ⇒ Object
Returns the value of attribute x.
11 12 13 |
# File 'lib/rpg/troop/member.rb', line 11 def x @x end |
#y ⇒ Object
Returns the value of attribute y.
12 13 14 |
# File 'lib/rpg/troop/member.rb', line 12 def y @y end |