|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.vizzini.ui.game.EnvironmentUISupport
public class EnvironmentUISupport
Provides base functionality for environment user interfaces in the game framework.
Constructor Summary | |
---|---|
EnvironmentUISupport()
|
Method Summary | |
---|---|
void |
assignAgentListeners(Iterator agentIterator)
Assign listeners using the given agents. |
void |
configure(Properties properties)
Configure this environment. |
IEnvironment |
getEnvironment()
Return the environment this UI represents. |
Properties |
getProperties()
|
boolean |
isAudioOn()
Return true if audio is on. |
void |
removeAgentListeners(Iterator agentIterator)
Remove the given agents as listeners. |
void |
reset()
Reset. |
void |
scoreChange(ScoreEvent event)
Respond to score change events. |
void |
setAudioOn(boolean isAudioOn)
Set the audio on flag. |
void |
setEnvironment(IEnvironment environment)
Set the environment this UI represents. |
void |
stateChange(StateEvent event)
Respond to state change events. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public EnvironmentUISupport()
Method Detail |
---|
public void assignAgentListeners(Iterator agentIterator)
assignAgentListeners
in interface IEnvironmentUI
agentIterator
- Agent iterator.public void configure(Properties properties) throws InstantiationException, IllegalAccessException
configure
in interface IEnvironmentUI
properties
- Source of configuration information.
InstantiationException
IllegalAccessException
public IEnvironment getEnvironment()
getEnvironment
in interface IEnvironmentUI
public Properties getProperties()
public boolean isAudioOn()
isAudioOn
in interface IEnvironmentUI
public void removeAgentListeners(Iterator agentIterator)
removeAgentListeners
in interface IEnvironmentUI
agentIterator
- Agent iterator.public void reset()
reset
in interface IEnvironmentUI
public void scoreChange(ScoreEvent event)
scoreChange
in interface IScoreListener
public void setAudioOn(boolean isAudioOn)
setAudioOn
in interface IEnvironmentUI
public void setEnvironment(IEnvironment environment)
setEnvironment
in interface IEnvironmentUI
environment
- Environment.public void stateChange(StateEvent event)
stateChange
in interface IStateListener
event
- State event.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 2007 Vizzini.org. All Rights Reserved. | 2007.12.25.03.00.02 |