Class: PFM::MiningGame

Inherits:
Object show all
Defined in:
docs/4_Systems_801_Mining_Game.rb

Overview

Class describing the Hall_of_Fame logic

Defined Under Namespace

Classes: Diggable, GridHandler

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeMiningGame

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_unlockedBoolean

If the player has access to the new dynamite tool

Returns:

  • (Boolean)


114
115
116
# File 'docs/4_Systems_801_Mining_Game.rb', line 114

def dynamite_unlocked
  @dynamite_unlocked
end

#first_timeBoolean

If the player is playing the mini-game for the first time

Returns:

  • (Boolean)


111
112
113
# File 'docs/4_Systems_801_Mining_Game.rb', line 111

def first_time
  @first_time
end

#hard_modeBoolean

Set the difficulty of the game (true = no yellow tiles at beginning)

Returns:

  • (Boolean)


138
139
140
# File 'docs/4_Systems_801_Mining_Game.rb', line 138

def hard_mode
  @hard_mode
end

#nb_dynamite_hitInteger

Tells how many times the player used the dynamite

Returns:

  • (Integer)


135
136
137
# File 'docs/4_Systems_801_Mining_Game.rb', line 135

def nb_dynamite_hit
  @nb_dynamite_hit
end

#nb_game_failedInteger

Tells how many times the player failed in the mini-game (wall collapsing)

Returns:

  • (Integer)


126
127
128
# File 'docs/4_Systems_801_Mining_Game.rb', line 126

def nb_game_failed
  @nb_game_failed
end

#nb_game_launchedInteger

Tells how many times the player has launched the mini-game

Returns:

  • (Integer)


120
121
122
# File 'docs/4_Systems_801_Mining_Game.rb', line 120

def nb_game_launched
  @nb_game_launched
end

#nb_game_successInteger

Tells how many times the player succeeded in the mini-game (every items dug)

Returns:

  • (Integer)


123
124
125
# File 'docs/4_Systems_801_Mining_Game.rb', line 123

def nb_game_success
  @nb_game_success
end

#nb_items_dugInteger

Tells how many items the player has dug

Returns:

  • (Integer)


117
118
119
# File 'docs/4_Systems_801_Mining_Game.rb', line 117

def nb_items_dug
  @nb_items_dug
end

#nb_mace_hitInteger

Tells how many times the player used the mace

Returns:

  • (Integer)


132
133
134
# File 'docs/4_Systems_801_Mining_Game.rb', line 132

def nb_mace_hit
  @nb_mace_hit
end

#nb_pickaxe_hitInteger

Tells how many times the player used the pickaxe

Returns:

  • (Integer)


129
130
131
# File 'docs/4_Systems_801_Mining_Game.rb', line 129

def nb_pickaxe_hit
  @nb_pickaxe_hit
end