Class: GamesAndRpgParadise::MightAndMagic::HeroTypes::Paladin

Inherits:
GamesAndRpgParadise::MightAndMagic::Hero show all
Defined in:
lib/games_and_rpg_paradise/games/might_and_magic/hero_types.rb

Constant Summary collapse

ONE_ATTACK_EVERY_N_LEVELS =
6

Constants inherited from Character

Character::AVAILABLE_RACES

Instance Attribute Summary

Attributes inherited from GamesAndRpgParadise::MightAndMagic::Hero

#gender, #hp, #level, #n_attacks, #name, #race

Instance Method Summary collapse

Methods inherited from GamesAndRpgParadise::MightAndMagic::Hero

#reset

Methods inherited from Character

#alive=, #alive?, #do_die, #hero_type?, #reset, #select_random_race, #set_age, #set_gender, #set_hero_type, #set_level, #set_number_of_attacks

Constructor Details

#initializePaladin

Returns a new instance of Paladin.



85
# File 'lib/games_and_rpg_paradise/games/might_and_magic/hero_types.rb', line 85

def initialize; super('paladin','rand',5,ONE_ATTACK_EVERY_N_LEVELS); end