public class Element
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
java.lang.String |
initialLocation
the name of the location the element is placed when the game starts, elements must be located somewhere at any moment
|
int |
initialOwner
the player number who owns this element when the game starts, or 0, if we do not care
|
int |
initialState
the state of the element (a number 1,2, etc.) when the game starts
|
int |
initialZindex
this is used just for graphical purposes - elements can have z-index which determines how their images overlap on the board
|
IndexedName |
name
name of the element - we use IndexedName class since it can have an index, such as el(2)
|
java.lang.String |
type
element type
|
Constructor and Description |
---|
Element(java.lang.String name)
construct an element with the specified name - fill the structure items manually then
|
public IndexedName name
public java.lang.String type
public int initialOwner
public java.lang.String initialLocation
public int initialState
public int initialZindex