Methapolis  0.27
 All Classes Namespaces Files Functions Variables Enumerator
refactored.Zone Class Reference
Collaboration diagram for refactored.Zone:

Public Member Functions

 Zone (short type, short x, short y)
 Zone (short type, short x, short y, short width, short height)
short getType ()
void setType (short type)
short getWidth ()
void setWidth (short width)
short getHeight ()
void setHeight (short height)
short getX ()
void setX (short x)
short getY ()
void setY (short y)
List< BuildinggetBuildings ()
void setBuildings (List< Building > buildings)

Static Public Attributes

static final short RESIDENTIAL = 1
static final short INDUSTRIAL = 2
static final short COMMERCIAL = 3
static final short POLICE = 4
static final short FIRESTATION = 5

Private Attributes

short type
short width
short height
short x
short y
List< Buildingbuildings

Detailed Description

This class wraps one or multiple buildings

Definition at line 8 of file Zone.java.

Constructor & Destructor Documentation

refactored.Zone.Zone ( short  type,
short  x,
short  y 
)

Definition at line 26 of file Zone.java.

References refactored.Zone.type, refactored.Zone.x, and refactored.Zone.y.

refactored.Zone.Zone ( short  type,
short  x,
short  y,
short  width,
short  height 
)

Member Function Documentation

List<Building> refactored.Zone.getBuildings ( )

Definition at line 79 of file Zone.java.

References refactored.Zone.buildings.

short refactored.Zone.getHeight ( )

Definition at line 55 of file Zone.java.

References refactored.Zone.height.

short refactored.Zone.getType ( )

Definition at line 39 of file Zone.java.

References refactored.Zone.type.

short refactored.Zone.getWidth ( )

Definition at line 47 of file Zone.java.

References refactored.Zone.width.

short refactored.Zone.getX ( )

Definition at line 63 of file Zone.java.

References refactored.Zone.x.

short refactored.Zone.getY ( )

Definition at line 71 of file Zone.java.

References refactored.Zone.y.

void refactored.Zone.setBuildings ( List< Building buildings)

Definition at line 83 of file Zone.java.

References refactored.Zone.buildings.

void refactored.Zone.setHeight ( short  height)

Definition at line 59 of file Zone.java.

References refactored.Zone.height.

void refactored.Zone.setType ( short  type)

Definition at line 43 of file Zone.java.

References refactored.Zone.type.

void refactored.Zone.setWidth ( short  width)

Definition at line 51 of file Zone.java.

References refactored.Zone.width.

void refactored.Zone.setX ( short  x)

Definition at line 67 of file Zone.java.

References refactored.Zone.x.

void refactored.Zone.setY ( short  y)

Definition at line 75 of file Zone.java.

References refactored.Zone.y.

Member Data Documentation

List<Building> refactored.Zone.buildings
private

Definition at line 23 of file Zone.java.

Referenced by refactored.Zone.getBuildings(), and refactored.Zone.setBuildings().

final short refactored.Zone.COMMERCIAL = 3
static

Definition at line 11 of file Zone.java.

final short refactored.Zone.FIRESTATION = 5
static

Definition at line 13 of file Zone.java.

short refactored.Zone.height
private
final short refactored.Zone.INDUSTRIAL = 2
static

Definition at line 10 of file Zone.java.

final short refactored.Zone.POLICE = 4
static

Definition at line 12 of file Zone.java.

final short refactored.Zone.RESIDENTIAL = 1
static

Definition at line 9 of file Zone.java.

short refactored.Zone.type
private
short refactored.Zone.width
private
short refactored.Zone.x
private

Definition at line 21 of file Zone.java.

Referenced by refactored.Zone.getX(), refactored.Zone.setX(), and refactored.Zone.Zone().

short refactored.Zone.y
private

Definition at line 22 of file Zone.java.

Referenced by refactored.Zone.getY(), refactored.Zone.setY(), and refactored.Zone.Zone().


The documentation for this class was generated from the following file: