Module: GamesAndRpgParadise::Kaiser
- Defined in:
- lib/games_and_rpg_paradise/games/kaiser/module_methods/language.rb,
lib/games_and_rpg_paradise/games/kaiser/module_methods/misc.rb,
lib/games_and_rpg_paradise/games/kaiser/module_methods/money.rb
Overview
GamesAndRpgParadise::Kaiser
Class Method Summary
collapse
-
.is_english? ⇒ Boolean
# === GamesAndRpgParadise::Kaiser.is_english? ========================================================================= #.
-
.is_german? ⇒ Boolean
# === GamesAndRpgParadise::Kaiser.is_german? ========================================================================= #.
-
.language? ⇒ Boolean
# === GamesAndRpgParadise::Kaiser.language? ========================================================================= #.
-
.money?(use_this_language = language? ) ⇒ Boolean
# === GamesAndRpgParadise::Kaiser.money? ========================================================================= #.
-
.set_english ⇒ Object
# === GamesAndRpgParadise::Kaiser.set_english ========================================================================= #.
-
.set_german ⇒ Object
# === GamesAndRpgParadise::Kaiser.set_german ========================================================================= #.
-
.set_language(i = :german) ⇒ Object
# === GamesAndRpgParadise::Kaiser.set_language ========================================================================= #.
-
.show_logo ⇒ Object
# === GamesAndRpgParadise::Kaiser.show_logo ========================================================================= #.
Class Method Details
.is_english? ⇒ Boolean
#
GamesAndRpgParadise::Kaiser.is_english?
#
61
62
63
|
# File 'lib/games_and_rpg_paradise/games/kaiser/module_methods/language.rb', line 61
def self.is_english?
language? == :english
end
|
.is_german? ⇒ Boolean
#
GamesAndRpgParadise::Kaiser.is_german?
#
54
55
56
|
# File 'lib/games_and_rpg_paradise/games/kaiser/module_methods/language.rb', line 54
def self.is_german?
language? == :german
end
|
.language? ⇒ Boolean
#
GamesAndRpgParadise::Kaiser.language?
#
47
48
49
|
# File 'lib/games_and_rpg_paradise/games/kaiser/module_methods/language.rb', line 47
def self.language?
@language
end
|
.money?(use_this_language = language?
) ⇒ Boolean
#
GamesAndRpgParadise::Kaiser.money?
#
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
# File 'lib/games_and_rpg_paradise/games/kaiser/module_methods/money.rb', line 16
def self.money?(
use_this_language = language?
)
case use_this_language
when :german
'Taler'
when :english
'gold coins'
end
end
|
.set_english ⇒ Object
#
GamesAndRpgParadise::Kaiser.set_english
#
33
34
35
|
# File 'lib/games_and_rpg_paradise/games/kaiser/module_methods/language.rb', line 33
def self.set_english
Kaiser.set_language :english
end
|
.set_german ⇒ Object
#
GamesAndRpgParadise::Kaiser.set_german
#
40
41
42
|
# File 'lib/games_and_rpg_paradise/games/kaiser/module_methods/language.rb', line 40
def self.set_german
Kaiser.set_language :german
end
|
.set_language(i = :german) ⇒ Object
#
GamesAndRpgParadise::Kaiser.set_language
#
26
27
28
|
# File 'lib/games_and_rpg_paradise/games/kaiser/module_methods/language.rb', line 26
def self.set_language(i = :german)
@language = i
end
|
.show_logo ⇒ Object
#
GamesAndRpgParadise::Kaiser.show_logo
#
18
19
20
|
# File 'lib/games_and_rpg_paradise/games/kaiser/module_methods/misc.rb', line 18
def self.show_logo
puts KAISER_LOGO
end
|