Class SinkConcurrentsShipOrder


  • public class SinkConcurrentsShipOrder
    extends ch.sahits.game.openpatrician.event.handler.TimedEventListener
    Author:
    Andi Hotz, (c) Sahits GmbH, 2014 Created on Feb 22, 2014
    • Field Summary

      • Fields inherited from class ch.sahits.game.openpatrician.event.handler.TimedEventListener

        date, deadline
    • Constructor Summary

      Constructors 
      Constructor Description
      SinkConcurrentsShipOrder​(ch.sahits.game.openpatrician.model.IPlayer opponent, ch.sahits.game.openpatrician.model.IPlayer player, int offerdTime, int premium, ch.sahits.game.openpatrician.model.event.TimedTask reconciliation)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean execute()  
      void handleShipAttack​(ch.sahits.game.openpatrician.event.data.ShipAttackEvent event)
      Handle the ships attak
      • Methods inherited from class ch.sahits.game.openpatrician.event.handler.TimedEventListener

        destroy, setDeadline
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SinkConcurrentsShipOrder

        public SinkConcurrentsShipOrder​(ch.sahits.game.openpatrician.model.IPlayer opponent,
                                        ch.sahits.game.openpatrician.model.IPlayer player,
                                        int offerdTime,
                                        int premium,
                                        ch.sahits.game.openpatrician.model.event.TimedTask reconciliation)
    • Method Detail

      • handleShipAttack

        public void handleShipAttack​(ch.sahits.game.openpatrician.event.data.ShipAttackEvent event)
        Handle the ships attak
        Parameters:
        event - ship attack event
      • execute

        public boolean execute()
        Specified by:
        execute in class ch.sahits.game.openpatrician.event.handler.TimedEventListener