org.otvl.sbxbsamp.simple
Class Room

java.lang.Object
  extended byorg.otvl.sbxbsamp.simple.Room

public class Room
extends java.lang.Object

A room in the house.

Version:
Author:

Constructor Summary
Room()
           
 
Method Summary
 void addTheDoors(Door aDoor)
          Adds a target at end of link theDoors.
 void addTheDoors(int index, Door aDoor)
          Inserts a target in link theDoors.
 void addWindoz(int index, Window aWindow)
          Inserts a target in link windoz.
 void addWindoz(Window aWindow)
          Adds a target at end of link windoz.
 void clearTheDoors()
          Clears all targets in link theDoors
 void clearWindoz()
          Clears all targets in link windoz
 int getId()
          Returns the id.
 java.lang.String getLocation()
          Returns the location.
 java.lang.String getName()
          Returns the name.
 Door getTheDoors(int index)
          Returns a target in link theDoors.
 Window getWindoz(int index)
          Returns a target in link windoz.
 java.util.Iterator iteratorTheDoors()
          Returns an iterator for targets in links theDoors
 java.util.Iterator iteratorWindoz()
          Returns an iterator for targets in links windoz
 void removeTheDoors(int index)
          Removes a target in link theDoors
 void removeWindoz(int index)
          Removes a target in link windoz
 void setId(int id)
          Sets the id.
 void setLocation(java.lang.String location)
          Sets the location.
 void setName(java.lang.String name)
          Sets the name.
 int sizeTheDoors()
          Returns the size of the collection theDoors
 int sizeWindoz()
          Returns the size of the collection windoz
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Room

public Room()
Method Detail

getId

public int getId()
Returns the id.

Returns:
int

setId

public void setId(int id)
Sets the id.

Parameters:
id - The id to set

getName

public java.lang.String getName()
Returns the name.

Returns:
String

setName

public void setName(java.lang.String name)
Sets the name.

Parameters:
name - The name to set

getLocation

public java.lang.String getLocation()
Returns the location.

Returns:
String

setLocation

public void setLocation(java.lang.String location)
Sets the location.

Parameters:
location - The location to set

getWindoz

public Window getWindoz(int index)
Returns a target in link windoz.
The windows of the room.

Parameters:
index - offset in the array
Returns:
Window

iteratorWindoz

public java.util.Iterator iteratorWindoz()
Returns an iterator for targets in links windoz

Returns:
java.util.Iterator

sizeWindoz

public int sizeWindoz()
Returns the size of the collection windoz

Returns:
int

addWindoz

public void addWindoz(int index,
                      Window aWindow)
Inserts a target in link windoz.
The windows of the room.

Parameters:
index - offset in the list
aWindow - The Window to insert

addWindoz

public void addWindoz(Window aWindow)
Adds a target at end of link windoz.
The windows of the room.

Parameters:
aWindow - The Window to insert

removeWindoz

public void removeWindoz(int index)
Removes a target in link windoz

Parameters:
index - offset in the list

clearWindoz

public void clearWindoz()
Clears all targets in link windoz


getTheDoors

public Door getTheDoors(int index)
Returns a target in link theDoors.
The doors of the room.

Parameters:
index - offset in the array
Returns:
Door

iteratorTheDoors

public java.util.Iterator iteratorTheDoors()
Returns an iterator for targets in links theDoors

Returns:
java.util.Iterator

sizeTheDoors

public int sizeTheDoors()
Returns the size of the collection theDoors

Returns:
int

addTheDoors

public void addTheDoors(int index,
                        Door aDoor)
Inserts a target in link theDoors.
The doors of the room.

Parameters:
index - offset in the list
aDoor - The Door to insert

addTheDoors

public void addTheDoors(Door aDoor)
Adds a target at end of link theDoors.
The doors of the room.

Parameters:
aDoor - The Door to insert

removeTheDoors

public void removeTheDoors(int index)
Removes a target in link theDoors

Parameters:
index - offset in the list

clearTheDoors

public void clearTheDoors()
Clears all targets in link theDoors



Copyright © 2003-2006 Thierry Beigbeder. All Rights Reserved.