Class Ballot
- java.lang.Object
-
- ch.sahits.game.openpatrician.model.city.cityhall.impl.Ballot
-
-
Field Summary
Fields Modifier and Type Field Description private int
numberNo
private int
numberYes
private ICityPetition
petition
private ICityViolation
violation
-
Constructor Summary
Constructors Constructor Description Ballot(ICityPetition petition)
Ballot(ICityViolation violation)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
vote(boolean yes)
Vote for or against something.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface ch.sahits.game.openpatrician.model.city.cityhall.IBallot
getNumberNo, getNumberYes
-
-
-
-
Field Detail
-
numberYes
private int numberYes
-
numberNo
private int numberNo
-
petition
private ICityPetition petition
-
violation
private ICityViolation violation
-
-
Constructor Detail
-
Ballot
public Ballot(ICityPetition petition)
-
Ballot
public Ballot(ICityViolation violation)
-
-