Class AddWeaponToShipCheat

  • All Implemented Interfaces:
    ch.sahits.game.openpatrician.model.cheat.ICheatCommand, ch.sahits.game.openpatrician.model.cheat.IDoubleSelectableCheatCommand

    @Component
    public class AddWeaponToShipCheat
    extends java.lang.Object
    implements ch.sahits.game.openpatrician.model.cheat.IDoubleSelectableCheatCommand
    Cheat command to add a weapon to a ship using CTRL+W.
    Author:
    Andi Hotz, (c) Sahits GmbH, 2018 Created on May 05, 2018
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void execute()  
      void setupModel()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface ch.sahits.game.openpatrician.model.cheat.ICheatCommand

        getControlKey, getDescriptionTextKey, getKey
      • Methods inherited from interface ch.sahits.game.openpatrician.model.cheat.IDoubleSelectableCheatCommand

        getFirstOptions, getSecondOptions, setSelectedFirstOption, setSelectedSecondOption
    • Constructor Detail

      • AddWeaponToShipCheat

        public AddWeaponToShipCheat()
    • Method Detail

      • setupModel

        public void setupModel()
        Specified by:
        setupModel in interface ch.sahits.game.openpatrician.model.cheat.IDoubleSelectableCheatCommand
      • execute

        public void execute()
        Specified by:
        execute in interface ch.sahits.game.openpatrician.model.cheat.ICheatCommand