Package net.sf.freecol.server.model
Class LootSession
- java.lang.Object
-
- net.sf.freecol.server.model.Session
-
- net.sf.freecol.server.model.LootSession
-
public class LootSession extends Session
A type of session to handle looting of cargo.
-
-
Constructor Summary
Constructors Constructor Description LootSession(Unit winner, Unit loser, java.util.List<Goods> capture)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
complete(ChangeSet cs)
All transaction types must implement a completion action.java.util.List<Goods>
getCapture()
-
Methods inherited from class net.sf.freecol.server.model.Session
clearAll, completeAll, findSession, getKey, lookup, lookup, lookup, makeSessionKey, makeSessionKey, register
-
-
-
-
Field Detail
-
logger
private static final java.util.logging.Logger logger
-
capture
private final java.util.List<Goods> capture
The goods that are available to be captured.
-
-
Method Detail
-
complete
public boolean complete(ChangeSet cs)
Description copied from class:Session
All transaction types must implement a completion action. This is called by the controller at the end of turn to complete any sessions that have not yet completed, or if the controller gets the required response to complete the session.
-
getCapture
public java.util.List<Goods> getCapture()
-
-