de.tud.dvs1.example
Class AvatarImplementation

java.lang.Object
  extended by de.tud.dvs1.mmpgp2p.GameObject
      extended by de.tud.dvs1.mmpgp2p.Avatar
          extended by de.tud.dvs1.example.AvatarImplementation
All Implemented Interfaces:
java.io.Serializable

public class AvatarImplementation
extends Avatar

See Also:
Serialized Form

Field Summary
 
Fields inherited from class de.tud.dvs1.mmpgp2p.Avatar
values
 
Fields inherited from class de.tud.dvs1.mmpgp2p.GameObject
AVATAR_INC, AVATAR_START_ID, fromx, fromy, fromz, h, id, l, lastcommand, lastupdate, life, maxlife, mayChange, name, orientation, owner, speed, subtype, tox, toy, toz, type, userdata, w, x, y, z
 
Constructor Summary
AvatarImplementation(int owner, int av_id, int x, int y)
           
 
Method Summary
 int hit(int h)
          Objekt wird getroffen und erhält Schaden.
 java.lang.String toString()
           
 java.lang.String toString(boolean detail)
           
 
Methods inherited from class de.tud.dvs1.mmpgp2p.Avatar
getDefaultSpeed, isAvatar, mayChangeRegion, setAvatarID, setDefaultSpeed
 
Methods inherited from class de.tud.dvs1.mmpgp2p.GameObject
getID, getLife, isMoving
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AvatarImplementation

public AvatarImplementation(int owner,
                            int av_id,
                            int x,
                            int y)
Method Detail

hit

public int hit(int h)
Description copied from class: GameObject
Objekt wird getroffen und erhält Schaden.

Overrides:
hit in class Avatar
Returns:
Die tatsächliche Menge des Schaden, den dieses Objekt erhalten hat.

toString

public java.lang.String toString()
Overrides:
toString in class Avatar

toString

public java.lang.String toString(boolean detail)
Overrides:
toString in class Avatar