Class: RPG::Enemy::Action

Inherits:
Object
  • Object
show all
Defined in:
lib/rpg/enemy/action.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeAction

Returns a new instance of Action.



4
5
6
7
8
9
10
# File 'lib/rpg/enemy/action.rb', line 4

def initialize
  @skill_id = 1
  @condition_type = 0
  @condition_param1 = 0
  @condition_param2 = 0
  @rating = 5
end

Instance Attribute Details

#condition_param1Object

Returns the value of attribute condition_param1.



13
14
15
# File 'lib/rpg/enemy/action.rb', line 13

def condition_param1
  @condition_param1
end

#condition_param2Object

Returns the value of attribute condition_param2.



14
15
16
# File 'lib/rpg/enemy/action.rb', line 14

def condition_param2
  @condition_param2
end

#condition_typeObject

Returns the value of attribute condition_type.



12
13
14
# File 'lib/rpg/enemy/action.rb', line 12

def condition_type
  @condition_type
end

#ratingObject

Returns the value of attribute rating.



15
16
17
# File 'lib/rpg/enemy/action.rb', line 15

def rating
  @rating
end

#skill_idObject

Returns the value of attribute skill_id.



11
12
13
# File 'lib/rpg/enemy/action.rb', line 11

def skill_id
  @skill_id
end