net.sf.freecol.server.model
Class LootSession

java.lang.Object
  extended by net.sf.freecol.server.model.TransactionSession
      extended by net.sf.freecol.server.model.LootSession

public class LootSession
extends TransactionSession

A type of session to handle looting of cargo.


Field Summary
private  java.util.List<Goods> capture
          The goods that are available to be captured.
private static java.util.logging.Logger logger
           
 
Fields inherited from class net.sf.freecol.server.model.TransactionSession
allSessions
 
Constructor Summary
LootSession(Unit winner, Unit loser)
           
 
Method Summary
 void complete(ChangeSet cs)
          All transaction types must implement a completion action.
 java.util.List<Goods> getCapture()
           
 void setCapture(java.util.List<Goods> capture)
           
 
Methods inherited from class net.sf.freecol.server.model.TransactionSession
clearAll, completeAll, lookup, lookup, makeSessionKey, makeSessionKey
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

private static final java.util.logging.Logger logger

capture

private java.util.List<Goods> capture
The goods that are available to be captured.

Constructor Detail

LootSession

public LootSession(Unit winner,
                   Unit loser)
Method Detail

complete

public void complete(ChangeSet cs)
Description copied from class: TransactionSession
All transaction types must implement a completion action. The last thing they should do is call this to remove reference to this transaction.

Overrides:
complete in class TransactionSession
Parameters:
cs - A ChangeSet to update with changes that occur when completing this session.

getCapture

public java.util.List<Goods> getCapture()

setCapture

public void setCapture(java.util.List<Goods> capture)