rails.game
Interface StockSpaceTypeI

All Known Implementing Classes:
StockSpaceType

public interface StockSpaceTypeI

The interface for StockSpaceType.


Field Summary
static java.lang.String COLOUR_TAG
          The name of the XML attribute for the stock price's colour.
static java.lang.String ELEMENT_ID
          The name of the XML tag used to configure a stock space.
static java.lang.String NAME_TAG
          The name of the XML attribute for the stock price type's name (any string, usually the space colour).
static java.lang.String NO_BUY_LIMIT_TAG
          The name of the XML tag for the "NoBuyLimit" property.
static java.lang.String NO_CERT_LIMIT_TAG
          The name of the XML tag for the "NoCertLimit" property.
static java.lang.String NO_HOLD_LIMIT_TAG
          The name of the XML tag for the "NoHoldLimit" property.
 
Method Summary
 java.awt.Color getColour()
           
 java.lang.String getName()
           
 boolean isNoBuyLimit()
           
 boolean isNoCertLimit()
           
 boolean isNoHoldLimit()
           
 void setNoBuyLimit(boolean b)
           
 void setNoCertLimit(boolean b)
           
 void setNoHoldLimit(boolean b)
           
 

Field Detail

ELEMENT_ID

static final java.lang.String ELEMENT_ID
The name of the XML tag used to configure a stock space.

See Also:
Constant Field Values

NAME_TAG

static final java.lang.String NAME_TAG
The name of the XML attribute for the stock price type's name (any string, usually the space colour).

See Also:
Constant Field Values

COLOUR_TAG

static final java.lang.String COLOUR_TAG
The name of the XML attribute for the stock price's colour. (optional; only provided as a possible help to the UI, which is free to redefine the colour as it seems fit).

See Also:
Constant Field Values

NO_CERT_LIMIT_TAG

static final java.lang.String NO_CERT_LIMIT_TAG
The name of the XML tag for the "NoCertLimit" property. (1830: yellow stock market area)

See Also:
Constant Field Values

NO_HOLD_LIMIT_TAG

static final java.lang.String NO_HOLD_LIMIT_TAG
The name of the XML tag for the "NoHoldLimit" property. (1830: orange area)

See Also:
Constant Field Values

NO_BUY_LIMIT_TAG

static final java.lang.String NO_BUY_LIMIT_TAG
The name of the XML tag for the "NoBuyLimit" property. (1830: brown area)

See Also:
Constant Field Values
Method Detail

getColour

java.awt.Color getColour()
Returns:
Color

getName

java.lang.String getName()
Returns:
Name

isNoBuyLimit

boolean isNoBuyLimit()
Returns:
if space triggers No Purchase Limit for stock

isNoCertLimit

boolean isNoCertLimit()
Returns:
if space triggers Stock not counting toward certificate ownership limit

isNoHoldLimit

boolean isNoHoldLimit()
Returns:
if space triggers Stock not counting toward certificate limit

setNoBuyLimit

void setNoBuyLimit(boolean b)
Parameters:
b -

setNoCertLimit

void setNoCertLimit(boolean b)
Parameters:
b -

setNoHoldLimit

void setNoHoldLimit(boolean b)
Parameters:
b -