com.croftsoft.apps.chat.model.seri
Class SeriChatModel

java.lang.Object
  extended by com.croftsoft.core.animation.model.seri.SeriModel
      extended by com.croftsoft.apps.chat.model.seri.SeriChatModel
All Implemented Interfaces:
ChatModel, ChatModelAccessor, Impassable, Model, ModelAccessor, Serializable, Comparable

public class SeriChatModel
extends SeriModel
implements ChatModel

The base class for a game world object Model.

Since:
2003-06-05
Version:
2003-06-17
See Also:
Serialized Form
Author:
David Wallace Croft

Field Summary
 
Fields inherited from class com.croftsoft.core.animation.model.seri.SeriModel
modelId
 
Constructor Summary
SeriChatModel(ModelId modelId, Consumer eventConsumer, ChatWorld chatWorld, String avatarType, double x, double y)
           
 
Method Summary
 String getAvatarType()
           
 double getCenterX()
           
 double getCenterY()
           
 Shape getShape()
           
 double getZ()
           
 boolean isActive()
           
 boolean isUpdated()
           
 void prepare()
           
 void setActive(boolean active)
           
 void setCenter(double x, double y)
           
 void setDestination(PointXY destination)
           
 void setEventConsumer(Consumer eventConsumer)
           
 void update(double timeDelta)
           
 
Methods inherited from class com.croftsoft.core.animation.model.seri.SeriModel
compareTo, getModelId
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.croftsoft.core.animation.model.ModelAccessor
getModelId
 
Methods inherited from interface java.lang.Comparable
compareTo
 

Constructor Detail

SeriChatModel

public SeriChatModel(ModelId modelId,
                     Consumer eventConsumer,
                     ChatWorld chatWorld,
                     String avatarType,
                     double x,
                     double y)
Method Detail

getAvatarType

public String getAvatarType()
Specified by:
getAvatarType in interface ChatModelAccessor

isActive

public boolean isActive()
Specified by:
isActive in interface ModelAccessor

getCenterX

public double getCenterX()
Specified by:
getCenterX in interface ModelAccessor

getCenterY

public double getCenterY()
Specified by:
getCenterY in interface ModelAccessor

getShape

public Shape getShape()
Specified by:
getShape in interface ModelAccessor

isUpdated

public boolean isUpdated()
Specified by:
isUpdated in interface ModelAccessor

getZ

public double getZ()
Specified by:
getZ in interface ModelAccessor

setActive

public void setActive(boolean active)
Specified by:
setActive in interface ChatModel

setDestination

public void setDestination(PointXY destination)
Specified by:
setDestination in interface ChatModel

setEventConsumer

public void setEventConsumer(Consumer eventConsumer)
Specified by:
setEventConsumer in interface ChatModel

setCenter

public void setCenter(double x,
                      double y)
Specified by:
setCenter in interface Model

prepare

public void prepare()
Specified by:
prepare in interface Model

update

public void update(double timeDelta)
Specified by:
update in interface Model

CroftSoft Javadoc

CroftSoft Apps Javadoc (2008-09-28 21:15:07)