|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.palmmedia.yahtzee.game.Section
public abstract class Section
Represents a section. The game consists of two sections. Each section consists of several elements.
Field Summary | |
---|---|
private List<Element> |
elements
The elements. |
Constructor Summary | |
---|---|
Section()
|
Method Summary | |
---|---|
protected void |
add(Element element)
Adds the given element. |
abstract int |
getBonus()
Gets the bonus of the section. |
List<Element> |
getElements()
Gets the elements. |
int |
getResult()
Gets the sum of the section. |
abstract boolean |
hasBonus()
Determines whether the section has a bonus. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private List<Element> elements
Constructor Detail |
---|
public Section()
Method Detail |
---|
protected void add(Element element)
element
- The element.public List<Element> getElements()
public int getResult()
public abstract int getBonus()
public abstract boolean hasBonus()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |