world
Class WorldObject

java.lang.Object
  extended byworld.WorldObject
Direct Known Subclasses:
City, Station

public class WorldObject
extends java.lang.Object

A world object.

Author:
Piotrek

Field Summary
private  Location location
          A location of this world object.
 java.lang.String name
          A name of this world object.
 
Constructor Summary
WorldObject(Location location, java.lang.String name)
          Constructor.
 
Method Summary
 Location GetLocation()
          Gets the location of this world object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

location

private Location location
A location of this world object.


name

public java.lang.String name
A name of this world object.

Constructor Detail

WorldObject

public WorldObject(Location location,
                   java.lang.String name)
Constructor.

Parameters:
location - A location of the new world object.
name - A name of this world object.
Method Detail

GetLocation

public Location GetLocation()
Gets the location of this world object.

Returns:
The location of this world object.