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

- (Action) initialize

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

- (Object) condition_param1

Returns the value of attribute condition_param1



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

def condition_param1
  @condition_param1
end

- (Object) condition_param2

Returns the value of attribute condition_param2



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

def condition_param2
  @condition_param2
end

- (Object) condition_type

Returns the value of attribute condition_type



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

def condition_type
  @condition_type
end

- (Object) rating

Returns the value of attribute rating



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

def rating
  @rating
end

- (Object) skill_id

Returns the value of attribute skill_id



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

def skill_id
  @skill_id
end