org.deken.game.sprites
Class BaseActor

java.lang.Object
  extended by org.deken.game.sprites.Sprite
      extended by org.deken.game.sprites.Actor
          extended by org.deken.game.sprites.BaseActor
All Implemented Interfaces:
Updateable

public class BaseActor
extends Actor

Copyright: Copyright (c) 2005

Version:
1.0
Author:
Gary Deken

Field Summary
 
Fields inherited from class org.deken.game.sprites.Actor
currentMoveMotion, currentStillMotion, movement, moveMotion, stillMotion
 
Fields inherited from class org.deken.game.sprites.Sprite
boundingBox, collisionMap, location, size
 
Constructor Summary
BaseActor(Motion motion, Movement movement, SpriteSize size)
          BaseActor
BaseActor(Motion motion, Movement movement, SpriteSize size, Animation stillAnimation)
          BaseActor
BaseActor(SpriteSize size)
           
 
Method Summary
 BaseActor copy()
           
protected  void spriteCollison(Sprite collideSprite)
          Handle the collision with another sprite.
 
Methods inherited from class org.deken.game.sprites.Actor
copyBase, draw, getBounds, getCurrentMoveMotion, getDirection, getMovement, getMoveMotions, getSpeed, getStillMotion, setCurrentMoveMotion, setDirection, setMotion, setMovement, setMoveMotions, setStillAnimations, setStillMotion, update, updateCurrentMotion, updateLocationX, updateLocationY
 
Methods inherited from class org.deken.game.sprites.Sprite
getDepth, getHeight, getLocation, getName, getSize, getWidth, getXLocation, getYLocation, removeFromMap, setBoundingBox, setBoundingBox, setCollisionMap, setLocation, setName, setSize, toString, updateLocation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BaseActor

public BaseActor(SpriteSize size)

BaseActor

public BaseActor(Motion motion,
                 Movement movement,
                 SpriteSize size)
BaseActor

Parameters:
motion - Motion
movement - Movement
size - SpriteSize

BaseActor

public BaseActor(Motion motion,
                 Movement movement,
                 SpriteSize size,
                 Animation stillAnimation)
BaseActor

Parameters:
motion - Motion
movement - Movement
size - SpriteSize
stillAnimation - Animation
Method Detail

copy

public BaseActor copy()
Specified by:
copy in class Sprite
Returns:
BaseActor

spriteCollison

protected void spriteCollison(Sprite collideSprite)
Description copied from class: Sprite
Handle the collision with another sprite.

Specified by:
spriteCollison in class Sprite