| Package | com.electrotank.electroserver4.zone |
| Class | public class Zone |
| Method | Defined by | ||
|---|---|---|---|
|
Zone()
Creates a new instance of the Zone class.
| Zone | ||
|
addJoinedRoom(room:Room):void
Adds a room to the joinedRooms list.
| Zone | ||
|
Adds a room to the room list.
| Zone | ||
|
doesRoomExist(id:Number):Boolean
Checks to see if a room exists base don the id passed in.
| Zone | ||
|
getJoinedRooms():Array
Gets a list of rooms in this zone that you happen to be joined to.
| Zone | ||
|
getRoomById(id:Number):Room
Gets a room based on an id.
| Zone | ||
|
getRoomByName(name:String):Room
Gets a room by name.
| Zone | ||
|
getRooms():Array
Gets the room list.
| Zone | ||
|
getZoneId():Number
Gets the zone id.
| Zone | ||
|
getZoneName():String
Gets the name of the zone.
| Zone | ||
|
removeJoinedRoom(room:Room):void
Removes a room from the joinedRoom list.
| Zone | ||
|
removeRoom(roomId:Number):void
Removes a room based on a room id.
| Zone | ||
|
setZoneId(num:Number):void
Sets the id of the zone.
| Zone | ||
|
setZoneName(name:String):void
Sets the name of the zone.
| Zone | ||
| Zone | () | constructor |
public function Zone()Creates a new instance of the Zone class.
| addJoinedRoom | () | method |
public function addJoinedRoom(room:Room):voidAdds a room to the joinedRooms list.
Parametersroom:Room — The room to add.
|
| addRoom | () | method |
public function addRoom(room:Room):voidAdds a room to the room list. As rooms are added to the zone on the server the client is informed of this.
Parametersroom:Room — Room to add.
|
| doesRoomExist | () | method |
public function doesRoomExist(id:Number):BooleanChecks to see if a room exists base don the id passed in.
Parametersid:Number — Id of the room.
|
Boolean — True or false.
|
| getJoinedRooms | () | method |
public function getJoinedRooms():ArrayGets a list of rooms in this zone that you happen to be joined to.
ReturnsArray |
| getRoomById | () | method |
public function getRoomById(id:Number):RoomGets a room based on an id.
Parametersid:Number — Id of the room to find.
|
Room —
Room whose id was passed in.
|
| getRoomByName | () | method |
public function getRoomByName(name:String):RoomGets a room by name.
Parametersname:String — Name of the room.
|
Room —
Reference to the room whose name was passed in.
|
| getRooms | () | method |
public function getRooms():ArrayGets the room list. Each element is an instance of the Room class.
ReturnsArray — The room list.
|
| getZoneId | () | method |
public function getZoneId():NumberGets the zone id.
ReturnsNumber — The id of the zone.
|
| getZoneName | () | method |
public function getZoneName():StringGets the name of the zone.
ReturnsString — The name of the zone.
|
| removeJoinedRoom | () | method |
public function removeJoinedRoom(room:Room):voidRemoves a room from the joinedRoom list.
Parametersroom:Room — Room to remove.
|
| removeRoom | () | method |
public function removeRoom(roomId:Number):voidRemoves a room based on a room id.
ParametersroomId:Number — Id of room to remove.
|
| setZoneId | () | method |
public function setZoneId(num:Number):voidSets the id of the zone.
Parametersnum:Number — Id of the zone.
|
| setZoneName | () | method |
public function setZoneName(name:String):voidSets the name of the zone.
Parametersname:String — The name of the zone.
|