Base
[ class tree: Base ] [ index: Base ] [ all elements ]

Class: Unit

Source Location: /objects/unit.php

Class Overview


Holds unit data for orders, including the territory which the unit is staying at.


Variables

Methods



Class Details

[line 29]
Holds unit data for orders, including the territory which the unit is staying at.



[ Top ]


Class Variables

$country =

[line 56]

Country owner


Type:   string


[ Top ]

$gameID =

[line 63]

Game ID


Type:   int


[ Top ]

$id =

[line 35]

Unit ID


Type:   int


[ Top ]

$terr =

[line 49]

Occupying territory, with coast data


Type:   string


[ Top ]

$Territory =

[line 69]

Occupied Territory object


Type:   Territory


[ Top ]

$type =

[line 42]

Unit type: 'Army'/'Fleet'


Type:   string


[ Top ]



Class Methods


constructor __construct [line 76]

Unit __construct( int $id)

Initialize a unit



Parameters:

int   $id   Unit ID

[ Top ]


Documentation generated on Thu, 13 Nov 2008 18:16:40 +0900 by phpDocumentor 1.4.1