map
Class Base

java.lang.Object
  extended by herzog3d.HZObject
      extended by map.Base

public class Base
extends HZObject

Author:
Shannon Smith

Nested Class Summary
static class Base.BaseType
           
 
Field Summary
 
Fields inherited from class herzog3d.HZObject
active, dir, pos, radius, shell, skin
 
Constructor Summary
Base(Tile centerTile, Base.BaseType type, ResourceManager res)
           
 
Method Summary
 boolean canInfiltrate(Player player)
           
 void dammage(int dammage)
           
 void draw(GameMap map)
           
 ReadableVector3f getCenter()
           
 int getLife()
           
 int getSize()
           
 Base.BaseType getType()
           
 boolean isAlive()
           
 boolean isInTile(int x, int y)
           
 void setOwner(Player owner)
           
 Vector3f testCollision(Vector3f v1, Vector3f v2)
           
 
Methods inherited from class herzog3d.HZObject
getColRadius, getDir, getPos, getRadius, intersects, isActive, move, move, setActive, setModel, setPos, setPos, setSkin, setState, testCollision
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Base

public Base(Tile centerTile,
            Base.BaseType type,
            ResourceManager res)
     throws ResourceNotFoundException
Throws:
ResourceNotFoundException
Method Detail

getCenter

public ReadableVector3f getCenter()

getType

public Base.BaseType getType()

getLife

public int getLife()

dammage

public void dammage(int dammage)

isAlive

public boolean isAlive()

isInTile

public boolean isInTile(int x,
                        int y)

getSize

public int getSize()

setOwner

public void setOwner(Player owner)

draw

public void draw(GameMap map)

testCollision

public Vector3f testCollision(Vector3f v1,
                              Vector3f v2)

canInfiltrate

public boolean canInfiltrate(Player player)