|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectsoc.game.SOCMoveRobberResult
This class holds the results of moving the robber. Specificaly, the victim or possible victims, and what was stolen.
| Field Summary | |
(package private) int |
loot
Resource type of loot stolen, as in SOCResourceConstants, or -1 |
(package private) java.util.Vector |
victims
Victim, or possible victims, or empty or null; content type SOCPlayer |
| Constructor Summary | |
SOCMoveRobberResult()
Creates a new SOCMoveRobberResult object. |
|
| Method Summary | |
int |
getLoot()
Get the type of resource stolen from the victim; undefined unless getVictims().size() == 1. |
java.util.Vector |
getVictims()
Get the victim (if any) or possible victims |
void |
setLoot(int l)
Set the type of resource stolen from the victim |
void |
setVictims(java.util.Vector v)
Set the victim (if any) or possible victims |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
java.util.Vector victims
SOCPlayer
int loot
SOCResourceConstants, or -1
| Constructor Detail |
public SOCMoveRobberResult()
| Method Detail |
public void setVictims(java.util.Vector v)
v - Victim or possible victims, may be empty or null; Vector of SOCPlayerpublic java.util.Vector getVictims()
SOCPlayerpublic void setLoot(int l)
l - type of resource stolen, as in SOCResourceConstants,
or -1 if nothing stolenpublic int getLoot()
getVictims().size() == 1.
SOCResourceConstants,
or -1 if nothing stolen
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||