Abenteuer.Programm.Kommandos
Class KommandoObjekt

java.lang.Object
  |
  +--Abenteuer.Programm.Kommandos.KommandoObjekt
Direct Known Subclasses:
BenutzeKommando, BewegeKommando, EndeKommando, HilfeKommando, InventoryKommando, LegeKommando, NimmKommando, SchaueKommando

public abstract class KommandoObjekt
extends java.lang.Object

Superklasse für alle Kommandos. Sie besitze einen Typ und kann das Kommando selbst ausführen.


Constructor Summary
KommandoObjekt(java.lang.String typ)
          Erzeugt ein neues Kommandoobjekt eines bestimmten Typs.
 
Method Summary
abstract  void ausfuehren()
          Führt das Kommando aus
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

KommandoObjekt

public KommandoObjekt(java.lang.String typ)
Erzeugt ein neues Kommandoobjekt eines bestimmten Typs.
Parameters:
typ - Der Typ des Kommandos
Method Detail

ausfuehren

public abstract void ausfuehren()
Führt das Kommando aus