Class: RPG::Troop::Member

Inherits:
Object
  • Object
show all
Defined in:
lib/rpg/troop/member.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeMember

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_idObject

Returns the value of attribute enemy_id.



10
11
12
# File 'lib/rpg/troop/member.rb', line 10

def enemy_id
  @enemy_id
end

#hiddenObject

Returns the value of attribute hidden.



13
14
15
# File 'lib/rpg/troop/member.rb', line 13

def hidden
  @hidden
end

#xObject

Returns the value of attribute x.



11
12
13
# File 'lib/rpg/troop/member.rb', line 11

def x
  @x
end

#yObject

Returns the value of attribute y.



12
13
14
# File 'lib/rpg/troop/member.rb', line 12

def y
  @y
end