Packagecom.electrotank.electroserver5.zone
Classpublic class Room
InheritanceRoom Inheritance Object

This class represents a room on the server. It stores a list of users in the room, room variables, and many other room properties.



Public Properties
 PropertyDefined By
  capacity : Number
Returns the allowable capacity for the room.
Room
  description : String
Gets the description proeprty for this room.
Room
  hasPassword : Boolean
Returns 'true' if the room is password protected.
Room
  id : int
Gets the id of the room.
Room
  isHidden : Boolean
Returns 'true' if the room is hidden.
Room
  isJoined : Boolean
[read-only] Returns 'true' if you belong to this room.
Room
  name : String
Gets the name of the room.
Room
  password : String
Gets the password for this room, if any.
Room
  roomVariables : Array
[read-only] Gets the list of RoomVariable objects.
Room
  userCount : Number
Gets the number of users in this room.
Room
  users : Array
[read-only] Gets the list of Users in this room.
Room
  zoneId : int
Gets the zoneId for this room.
Room
Public Methods
 MethodDefined By
  
Creates a new Room instance.
Room
  
Gets a RoomVariable object by name.
Room
Property Detail
capacityproperty
capacity:Number

Returns the allowable capacity for the room.


Implementation
    public function get capacity():Number
    public function set capacity(value:Number):void
descriptionproperty 
description:String

Gets the description proeprty for this room.


Implementation
    public function get description():String
    public function set description(value:String):void
hasPasswordproperty 
hasPassword:Boolean

Returns 'true' if the room is password protected.


Implementation
    public function get hasPassword():Boolean
    public function set hasPassword(value:Boolean):void
idproperty 
id:int

Gets the id of the room.


Implementation
    public function get id():int
    public function set id(value:int):void
isHiddenproperty 
isHidden:Boolean

Returns 'true' if the room is hidden.


Implementation
    public function get isHidden():Boolean
    public function set isHidden(value:Boolean):void
isJoinedproperty 
isJoined:Boolean  [read-only]

Returns 'true' if you belong to this room.


Implementation
    public function get isJoined():Boolean
nameproperty 
name:String

Gets the name of the room.


Implementation
    public function get name():String
    public function set name(value:String):void
passwordproperty 
password:String

Gets the password for this room, if any.


Implementation
    public function get password():String
    public function set password(value:String):void
roomVariablesproperty 
roomVariables:Array  [read-only]

Gets the list of RoomVariable objects.


Implementation
    public function get roomVariables():Array
userCountproperty 
userCount:Number

Gets the number of users in this room.


Implementation
    public function get userCount():Number
    public function set userCount(value:Number):void
usersproperty 
users:Array  [read-only]

Gets the list of Users in this room.


Implementation
    public function get users():Array
zoneIdproperty 
zoneId:int

Gets the zoneId for this room.


Implementation
    public function get zoneId():int
    public function set zoneId(value:int):void
Constructor Detail
Room()Constructor
public function Room()

Creates a new Room instance.

Method Detail
roomVariableByName()method
public function roomVariableByName(name:String):RoomVariable

Gets a RoomVariable object by name.

Parameters

name:String — of the variable to find.

Returns
RoomVariable — RoomVariable object that has the name passed in.