|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectnl.tudelft.simulation.event.EventProducer
org.gscg.common.interactionlayer.location.YellowPage
The YellowPage object is a place holder for the actors in an interactive simulation. Whenever an actor is added or removed this object sends LocationAndNameData objects to all the client-side graphical user interfaces which upon receiving this data adjust their WorldPanel. It is furthermore used to support social communication by means of text messages between human controlled actors and a game leader.
Copyright (c) 2003-2005 Delft University of Technology, Jaffalaan 5, 2628 BX Delft, the Netherlands. All rights reserved. See for project information www.simulation.tudelft.nl . The source code and binary code of this software is proprietary information of Delft University of Technology.
| Field Summary | |
static nl.tudelft.simulation.event.EventType |
UPDATE_ACTORS
to indicate the adding or removing of new actors |
static nl.tudelft.simulation.event.EventType |
UPDATE_INTERACTIVE_PLAYER_STATUS
to indicate a change in the status of a human controlled actor |
| Fields inherited from class nl.tudelft.simulation.event.EventProducer |
listeners |
| Fields inherited from interface nl.tudelft.simulation.event.EventProducerInterface |
FIRST_POSITION, LAST_POSITION |
| Constructor Summary | |
YellowPage()
constructs a new YellowPage |
|
| Method Summary | |
void |
addActor(GameActorInterface actor,
java.lang.String actorType,
boolean interactive)
Method addActor. |
void |
addGameLeader(GameLeaderInteractionLayer gameLeader)
Method addGameLeader. |
boolean |
addListener(nl.tudelft.simulation.event.EventListenerInterface listener,
nl.tudelft.simulation.event.EventType eventType)
|
nl.tudelft.simulation.event.EventListenerInterface |
findActor(java.lang.String name)
Method findActor. |
void |
removeActor(GameActorInterface actor)
Method removeActor. |
void |
update(boolean announce,
nl.tudelft.simulation.event.EventListenerInterface owner)
Method update. |
void |
updateActor(GameActorInterface actor,
java.lang.String actorType,
boolean interactive)
Method updateActor. |
void |
updateInteractiveOnlineStatus(nl.tudelft.simulation.actor.ActorInterface actor,
boolean status,
boolean persistent)
Method updateInteractiveOnlineStatus. |
void |
updateInteractiveOnlineStatus(GameLeaderInteractionLayer gameLeader,
boolean status,
boolean persistent)
Method updateInteractiveOnlineStatus. |
| Methods inherited from class nl.tudelft.simulation.event.EventProducer |
addListener, addListener, addListener, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, getEventTypes, removeAllListeners, removeAllListeners, removeListener |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final nl.tudelft.simulation.event.EventType UPDATE_ACTORS
public static final nl.tudelft.simulation.event.EventType UPDATE_INTERACTIVE_PLAYER_STATUS
| Constructor Detail |
public YellowPage()
| Method Detail |
public void addActor(GameActorInterface actor,
java.lang.String actorType,
boolean interactive)
actor - the actoractorType - the type of actorinteractive - indicates whether the actor is human controlled or notpublic void addGameLeader(GameLeaderInteractionLayer gameLeader)
gameLeader - the game leaderpublic void removeActor(GameActorInterface actor)
actor - the actor
public void updateActor(GameActorInterface actor,
java.lang.String actorType,
boolean interactive)
actor - the actoractorType - the type of actorinteractive - indicates whether the actor is human controlled or not
public void updateInteractiveOnlineStatus(nl.tudelft.simulation.actor.ActorInterface actor,
boolean status,
boolean persistent)
actor - the human controlled actor actor to updatestatus - the status of the actor, true if the human controlled actor
is onlinepersistent - indicates whether the status is changed because of
saving, if true , no event is fired
public void updateInteractiveOnlineStatus(GameLeaderInteractionLayer gameLeader,
boolean status,
boolean persistent)
gameLeader - the game leaderstatus - the status of the actor, true if the human controlled actor
is onlinepersistent - indicates whether the status is changed because of
saving, if true , no event is fired
public void update(boolean announce,
nl.tudelft.simulation.event.EventListenerInterface owner)
announce - indicates whether this is an announce eventowner - may be null if announce == falsepublic nl.tudelft.simulation.event.EventListenerInterface findActor(java.lang.String name)
name - the name of the actor
public boolean addListener(nl.tudelft.simulation.event.EventListenerInterface listener,
nl.tudelft.simulation.event.EventType eventType)
EventProducerInterface.addListener(nl.tudelft.simulation.event.EventListenerInterface,
nl.tudelft.simulation.event.EventType)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||