Class InstructionDeplacement
java.lang.Object
labyrinthe.instructions.deplacement.InstructionDeplacement
- All Implemented Interfaces:
Instruction
,InstructionValImm
- Direct Known Subclasses:
InstructionAva
public abstract class InstructionDeplacement
extends Object
implements Instruction, InstructionValImm
Cette interface contient les méthodes à implémenter pour exécuter une instruction de déplacement.
-
Constructor Summary
ConstructorsConstructorDescriptionInstructionDeplacement
(int pas) Constructeur de la classe labyrinthe.instructions.deplacement.InstructionDeplacement. -
Method Summary
Modifier and TypeMethodDescriptionint
getPas()
Cette méthode retourne le nombre de pas à effectuer.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface labyrinthe.instructions.Instruction
executer
Methods inherited from interface labyrinthe.instructions.InstructionValImm
verifierImm
-
Constructor Details
-
InstructionDeplacement
public InstructionDeplacement(int pas) Constructeur de la classe labyrinthe.instructions.deplacement.InstructionDeplacement.- Parameters:
pas
- le nombre de pas à effectuer
-
-
Method Details
-
getPas
public int getPas()Cette méthode retourne le nombre de pas à effectuer.- Returns:
- le nombre de pas à effectuer
-