module Patterns

The Patterns module. alistanis.github.cio/DesignPatterns/

Constants

DEFAULT_LOG_PATH

The default log path to write data to

GameManager

Constant declaration of GameManager as an Object

MONSTER_JSON_PATH

The default monster json data path

VERSION

The version of the Gem. Incremented with each new pattern implemented. When all are complete, the major version number will switch to 1.

Public Instance Methods

to_h() click to toggle source

Converts the MonsterType to a Hash object

Examples

=> monster_type_hash = monster_type.to_h
# File app/models/type_object/monster_type.rb, line 138
def to_h
  {'name' => @name, 'health' => @health, 'attack' => @attack, 'attack_range' => @range, 'resistances' => @resistances, 'weaknesses' => @weaknesses, 'prototype' => @prototype}
end