de.esw.eengine.renderable
Class AbstractScript<Type>

java.lang.Object
  extended by de.esw.eengine.renderable.AbstractRenderable
      extended by de.esw.eengine.renderable.AbstractScript<Type>
Type Parameters:
Type - Script element type
All Implemented Interfaces:
IActivatable, IRenderable, IScript<Type>, IUpdateable

public abstract class AbstractScript<Type>
extends AbstractRenderable
implements IScript<Type>

Since:
1.0
Version:
$Id: AbstractScript.java 209 2005-07-23 00:39:50Z markusw $
Author:
markusw

Constructor Summary
AbstractScript(java.lang.String name)
           
 
Method Summary
 Type getTarget()
           
 boolean isActive()
           
 void render(IRenderDevice renderDevice)
          Renders this entity to the current IRenderDevice
 void setActive(boolean active)
           
 void setTarget(Type target)
           
 void toggle()
          Switches activation state
 void update(float delta)
           
 
Methods inherited from class de.esw.eengine.renderable.AbstractRenderable
blend, getAlpha, getName, setAlpha, setName
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface de.esw.eengine.core.IScript
getName, setName
 
Methods inherited from interface de.esw.eengine.core.IRenderable
blend, getAlpha, setAlpha
 

Constructor Detail

AbstractScript

public AbstractScript(java.lang.String name)
Parameters:
name - Name of this script
Method Detail

getTarget

public Type getTarget()
Specified by:
getTarget in interface IScript<Type>
Returns:
The target object
See Also:
IScript.getTarget()

setTarget

public void setTarget(Type target)
Specified by:
setTarget in interface IScript<Type>
Parameters:
target - Target for this IScript

setActive

public void setActive(boolean active)
Specified by:
setActive in interface IActivatable
Parameters:
active - True if IActivatable should be active, false otherwise
See Also:
IActivatable.setActive(boolean)

isActive

public boolean isActive()
Specified by:
isActive in interface IActivatable
Returns:
True if IActivatable is active, false otherwise
See Also:
IActivatable.isActive()

toggle

public void toggle()
Description copied from interface: IActivatable
Switches activation state

Specified by:
toggle in interface IActivatable
See Also:
IActivatable.toggle()

render

public void render(IRenderDevice renderDevice)
Description copied from interface: IRenderable
Renders this entity to the current IRenderDevice

Specified by:
render in interface IRenderable
Parameters:
renderDevice - IRenderDevice to render onto
See Also:
IRenderable.render(de.esw.eengine.core.IRenderDevice)

update

public void update(float delta)
Specified by:
update in interface IUpdateable
Parameters:
delta - Time in millis since last update
See Also:
IUpdateable.update(float)