Sha256: 59152bccdec1b5ee6db0cd74574913b630d9d501e8217d2c390af76e9dceab1b

Contents?: true

Size: 740 Bytes

Versions: 4

Compression:

Stored size: 740 Bytes

Contents

# =>
# => Author::       Valentin, DanAurea
# => Version::      0.1
# => Copyright::    © 2016
# => License::      Distributes under the same terms as Ruby
# 	

##	
## Classe permettant de créer un controlleur pour la vue FenetreCharger
##
class ChargerControleur < Controller

	##
    ## Initialize
    ##
	def initialize()
		#charge le modèle grille
		loadModel("Grille")
		#paramètres fenêtre
		@title  = "Sudoku - Partie chargée"
		@content = {"grille" => nil}
	end

	##
    ## Méthode à définir dans tous les cas !
    ##
    ## @return 	self
    ##
	def run()

		if(@content.has_key?(:niveau))
			niveau = @content[:niveau]
		else
			niveau = 1
		end

		@content["grille"] = @Grille.generer(niveau)
		
		return self
	end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
Dogeku-1.0.4 app/controller/ChargerControleur.rb
Dogeku-1.0.3 app/controller/ChargerControleur.rb
Dogeku-1.0.2 app/controller/ChargerControleur.rb
Dogeku-1.0.1 app/controller/ChargerControleur.rb