Class: PFM::MiningGame
Overview
Class describing the Hall_of_Fame logic
Defined Under Namespace
Classes: Diggable, GridHandler
Instance Attribute Summary collapse
-
#dynamite_unlocked ⇒ Boolean
If the player has access to the new dynamite tool.
-
#first_time ⇒ Boolean
If the player is playing the mini-game for the first time.
-
#hard_mode ⇒ Boolean
Set the difficulty of the game (true = no yellow tiles at beginning).
-
#nb_dynamite_hit ⇒ Integer
Tells how many times the player used the dynamite.
-
#nb_game_failed ⇒ Integer
Tells how many times the player failed in the mini-game (wall collapsing).
-
#nb_game_launched ⇒ Integer
Tells how many times the player has launched the mini-game.
-
#nb_game_success ⇒ Integer
Tells how many times the player succeeded in the mini-game (every items dug).
-
#nb_items_dug ⇒ Integer
Tells how many items the player has dug.
-
#nb_mace_hit ⇒ Integer
Tells how many times the player used the mace.
-
#nb_pickaxe_hit ⇒ Integer
Tells how many times the player used the pickaxe.
Instance Method Summary collapse
-
#initialize ⇒ MiningGame
constructor
A new instance of MiningGame.
Constructor Details
#initialize ⇒ MiningGame
Returns a new instance of MiningGame.
139 140 |
# File 'docs/4_Systems_801_Mining_Game.rb', line 139 def initialize end |
Instance Attribute Details
#dynamite_unlocked ⇒ Boolean
If the player has access to the new dynamite tool
114 115 116 |
# File 'docs/4_Systems_801_Mining_Game.rb', line 114 def dynamite_unlocked @dynamite_unlocked end |
#first_time ⇒ Boolean
If the player is playing the mini-game for the first time
111 112 113 |
# File 'docs/4_Systems_801_Mining_Game.rb', line 111 def first_time @first_time end |
#hard_mode ⇒ Boolean
Set the difficulty of the game (true = no yellow tiles at beginning)
138 139 140 |
# File 'docs/4_Systems_801_Mining_Game.rb', line 138 def hard_mode @hard_mode end |
#nb_dynamite_hit ⇒ Integer
Tells how many times the player used the dynamite
135 136 137 |
# File 'docs/4_Systems_801_Mining_Game.rb', line 135 def nb_dynamite_hit @nb_dynamite_hit end |
#nb_game_failed ⇒ Integer
Tells how many times the player failed in the mini-game (wall collapsing)
126 127 128 |
# File 'docs/4_Systems_801_Mining_Game.rb', line 126 def nb_game_failed @nb_game_failed end |
#nb_game_launched ⇒ Integer
Tells how many times the player has launched the mini-game
120 121 122 |
# File 'docs/4_Systems_801_Mining_Game.rb', line 120 def nb_game_launched @nb_game_launched end |
#nb_game_success ⇒ Integer
Tells how many times the player succeeded in the mini-game (every items dug)
123 124 125 |
# File 'docs/4_Systems_801_Mining_Game.rb', line 123 def nb_game_success @nb_game_success end |
#nb_items_dug ⇒ Integer
Tells how many items the player has dug
117 118 119 |
# File 'docs/4_Systems_801_Mining_Game.rb', line 117 def nb_items_dug @nb_items_dug end |
#nb_mace_hit ⇒ Integer
Tells how many times the player used the mace
132 133 134 |
# File 'docs/4_Systems_801_Mining_Game.rb', line 132 def nb_mace_hit @nb_mace_hit end |
#nb_pickaxe_hit ⇒ Integer
Tells how many times the player used the pickaxe
129 130 131 |
# File 'docs/4_Systems_801_Mining_Game.rb', line 129 def nb_pickaxe_hit @nb_pickaxe_hit end |