ants.move.core.views.avatar
Class AvatarView

java.lang.Object
  |
  +--ants.move.core.views.DynamicObject
        |
        +--ants.move.core.views.avatar.AvatarView
All Implemented Interfaces:
AvatarListener, VRMLEventListener

public class AvatarView
extends DynamicObject
implements AvatarListener

Avatar implementation.

Version:
1.22 Build 2000
Author:
Carles Pairot (cpairot@tinet.org), Oriol Montalà (omontala@tinet.org)

Constructor Summary
AvatarView()
           
AvatarView(ants.core.Place ch, java.util.Hashtable env)
          Sole constructor.
 
Method Summary
 void danceAvatar()
           
 void destroyAvatar()
           
 AvatarModel getModel()
           
 java.lang.String getUserName()
          Get user's name.
 void greetAvatar()
           
 void hideAvatar()
           
 void init()
           
 void leaveSession()
           
 void loadAvatar()
           
 void moveAvatar(float[] p, float[] o)
           
 void showAvatar()
           
 float to1d(float n)
          Trims a float to an only decimal digit.
 
Methods inherited from class ants.move.core.views.DynamicObject
addListener, catchNode, eventPerformed, getBrowser, getName, getNode, getVRMLNodeName, getZone, getZoneName, printMsg, setaddChValue, setaddChValue, setBrowser, setChNodes, setName, setreChValue, setreChValue, setVRMLNodeName, setZoneName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AvatarView

public AvatarView()

AvatarView

public AvatarView(ants.core.Place ch,
                  java.util.Hashtable env)
Sole constructor.
Throws:
exceptions - No exceptions thrown
Method Detail

loadAvatar

public void loadAvatar()

init

public void init()

to1d

public float to1d(float n)
Trims a float to an only decimal digit.
Parameters:
n - Number to trim
Returns:
Number trimmed
Throws:
exceptions - No exceptions thrown

getUserName

public java.lang.String getUserName()
Get user's name.
Parameters:
params - None
Returns:
User's name
Throws:
exceptions - No exceptions thrown

moveAvatar

public void moveAvatar(float[] p,
                       float[] o)
Specified by:
moveAvatar in interface AvatarListener

destroyAvatar

public void destroyAvatar()
Specified by:
destroyAvatar in interface AvatarListener

hideAvatar

public void hideAvatar()
Specified by:
hideAvatar in interface AvatarListener

showAvatar

public void showAvatar()
Specified by:
showAvatar in interface AvatarListener

leaveSession

public void leaveSession()

greetAvatar

public void greetAvatar()
Specified by:
greetAvatar in interface AvatarListener

getModel

public AvatarModel getModel()

danceAvatar

public void danceAvatar()
Specified by:
danceAvatar in interface AvatarListener


Developers: Oriol Montala, Carles Pairot, Francesc Pinas2000 - 2002
Departament d'Enginyeria Informatica i Matematiques
Escola Tecnica Superior d'Enginyeria
Universitat Rovira i Virgili