Class: RPG::Troop::Member
- Inherits:
-
Object
- Object
- RPG::Troop::Member
- Defined in:
- lib/rpg/troop/member.rb
Instance Attribute Summary (collapse)
-
- (Object) enemy_id
Returns the value of attribute enemy_id.
-
- (Object) hidden
Returns the value of attribute hidden.
-
- (Object) x
Returns the value of attribute x.
-
- (Object) y
Returns the value of attribute y.
Instance Method Summary (collapse)
-
- (Member) initialize
constructor
A new instance of Member.
Constructor Details
- (Member) initialize
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
- (Object) enemy_id
Returns the value of attribute enemy_id
10 11 12 |
# File 'lib/rpg/troop/member.rb', line 10 def enemy_id @enemy_id end |
- (Object) hidden
Returns the value of attribute hidden
13 14 15 |
# File 'lib/rpg/troop/member.rb', line 13 def hidden @hidden end |
- (Object) x
Returns the value of attribute x
11 12 13 |
# File 'lib/rpg/troop/member.rb', line 11 def x @x end |
- (Object) y
Returns the value of attribute y
12 13 14 |
# File 'lib/rpg/troop/member.rb', line 12 def y @y end |