org.gjt.universe.notification
Class FleetNotification
java.lang.Object
|
+--org.gjt.universe.notification.Notification
|
+--org.gjt.universe.notification.FleetNotification
- public class FleetNotification
- extends Notification
This Notification subclass is used for notifications
posted by fleet objects. The primary purpose of this
class is to have all the fleet specific notification
names in their own file rather than having one massive
file mixing in all the notification names from all
objects. However, if at a future date we'd like to
embed additional information in fleet notification
objects, this can be accomplished by adding instance
variables and accessor methods.
- Author:
- Allan Noordvyk (noordvyk@home.com)
Fields inherited from class org.gjt.universe.notification.Notification |
|
Constructor Summary |
FleetNotification(java.lang.String name,
FleetBase sendingFleet)
This is the designated constructor which should be used to
create instances of this class. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CREATED
public static java.lang.String CREATED
ELIMINATED
public static java.lang.String ELIMINATED
MOVED
public static java.lang.String MOVED
SHIPS_CHANGED
public static java.lang.String SHIPS_CHANGED
NAME_CHANGED
public static java.lang.String NAME_CHANGED
FleetNotification
public FleetNotification(java.lang.String name,
FleetBase sendingFleet)
- This is the designated constructor which should be used to
create instances of this class.
- Parameters:
name
- The name (i.e. type) of the notification.sendingFleet
- The fleet sending the notification.
getSendingFleet
public FleetBase getSendingFleet()
- This simply returns the sending object cast to be
a fleet.
Copyright © 2001 Universe Dev Team All Rights Reserved.