Class PostStateDialogToHumanPlayerTask
- java.lang.Object
-
- ch.sahits.game.openpatrician.model.event.TimedTask
-
- ch.sahits.game.openpatrician.engine.event.task.PostStateDialogToHumanPlayerTask
-
- All Implemented Interfaces:
java.lang.Runnable
public class PostStateDialogToHumanPlayerTask extends TimedTask
Timed task to post a dialog through a state- Author:
- Andi Hotz, (c) Sahits GmbH, 2018 Created on Feb 03, 2018
-
-
Field Summary
Fields Modifier and Type Field Description private EMessageCategory
category
private com.google.common.eventbus.AsyncEventBus
clientServerEventBus
private java.lang.String
messageKey
private java.lang.Object[]
messageParams
private IPlayer
player
private IDialogState
state
-
Constructor Summary
Constructors Constructor Description PostStateDialogToHumanPlayerTask(java.time.LocalDateTime executionTime, EMessageCategory category, IDialogState state, IPlayer player, java.lang.String messageKey, java.lang.Object[] messageParams)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
run()
java.lang.String
toString()
-
-
-
Field Detail
-
state
private final IDialogState state
-
player
private final IPlayer player
-
messageKey
private final java.lang.String messageKey
-
messageParams
private final java.lang.Object[] messageParams
-
category
private final EMessageCategory category
-
clientServerEventBus
@Autowired @Qualifier("serverClientEventBus") private com.google.common.eventbus.AsyncEventBus clientServerEventBus
-
-
Constructor Detail
-
PostStateDialogToHumanPlayerTask
public PostStateDialogToHumanPlayerTask(java.time.LocalDateTime executionTime, EMessageCategory category, IDialogState state, IPlayer player, java.lang.String messageKey, java.lang.Object[] messageParams)
-
-