Class Coco

java.lang.Object
  extended by Coco

public class Coco
extends java.lang.Object


Field Summary
private  int cdIndex
           
private  int clIndex
           
private  boolean close
           
private  int crIndex
           
private  int cycle
           
private  int damage
           
private  boolean dead
           
private  java.lang.String[] dialogue
           
private  int eIndex
           
private  int frame
           
private  int gdIndex
           
private  int glIndex
           
private  int grIndex
           
private  int hitPoints
           
private  boolean holdingWeapon
           
private  java.awt.image.BufferedImage[] image
           
private  Position[] initialPos
           
private  boolean isShooting
           
private  boolean isWalking
           
private  int lives
           
private  int maxHP
           
private  int mdIndex
           
private  int mlIndex
           
private  int mrIndex
           
private  int nIndex
           
private  Position p
           
private  java.awt.Rectangle r
           
private  int sIndex
           
private  Weapon[] weapon
           
private  int wIndex
           
 
Constructor Summary
Coco(java.io.File file, java.awt.image.BufferedImage[] image)
           
 
Method Summary
 void draw(java.awt.Graphics2D g, int screenX, int screenY)
           
 int getDamage()
           
 int getHitPoints()
           
 java.awt.image.BufferedImage[] getImage()
           
 int getLives()
           
 int getMaxHP()
           
 Position getPosition()
           
 java.awt.Rectangle getRectangle()
           
 Weapon[] getWeapon()
           
 Weapon getWeaponInUse()
           
 void heal(int hp)
           
 void incrementCycle()
           
 boolean isDead()
           
 boolean isHoldingWeapon()
           
 boolean isShooting()
           
 boolean isWalking()
           
 void move(int direction)
           
 boolean resetHealth()
           
 void setDamage(int damage)
           
 void setHitPoints(int hitPoints)
           
 void setHoldingWeapon(boolean holdingWeapon)
           
 void setImage(java.awt.image.BufferedImage[] image)
           
 void setMapPosition(int currMap)
           
 void setMaxHP(int maxHP)
           
 void setPosition(Position p)
           
 void setShooting(boolean isShooting)
           
 void setWalking(boolean isWalking)
           
 void setWeapons(Weapon[] weapon)
           
 void takeDamage(int damage)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

close

private boolean close

dead

private boolean dead

holdingWeapon

private boolean holdingWeapon

isShooting

private boolean isShooting

isWalking

private boolean isWalking

image

private java.awt.image.BufferedImage[] image

cycle

private int cycle

frame

private int frame

damage

private int damage

hitPoints

private int hitPoints

maxHP

private int maxHP

lives

private int lives

clIndex

private int clIndex

crIndex

private int crIndex

cdIndex

private int cdIndex

glIndex

private int glIndex

grIndex

private int grIndex

gdIndex

private int gdIndex

mlIndex

private int mlIndex

mrIndex

private int mrIndex

mdIndex

private int mdIndex

eIndex

private int eIndex

nIndex

private int nIndex

sIndex

private int sIndex

wIndex

private int wIndex

p

private Position p

initialPos

private Position[] initialPos

r

private java.awt.Rectangle r

dialogue

private java.lang.String[] dialogue

weapon

private Weapon[] weapon
Constructor Detail

Coco

public Coco(java.io.File file,
            java.awt.image.BufferedImage[] image)
Method Detail

getImage

public java.awt.image.BufferedImage[] getImage()

getDamage

public int getDamage()

getHitPoints

public int getHitPoints()

getLives

public int getLives()

getMaxHP

public int getMaxHP()

getPosition

public Position getPosition()

getRectangle

public java.awt.Rectangle getRectangle()

getWeapon

public Weapon[] getWeapon()

getWeaponInUse

public Weapon getWeaponInUse()

setImage

public void setImage(java.awt.image.BufferedImage[] image)

setDamage

public void setDamage(int damage)

setHitPoints

public void setHitPoints(int hitPoints)

setMapPosition

public void setMapPosition(int currMap)

setMaxHP

public void setMaxHP(int maxHP)

setPosition

public void setPosition(Position p)

setWeapons

public void setWeapons(Weapon[] weapon)

resetHealth

public boolean resetHealth()

isDead

public boolean isDead()

move

public void move(int direction)

takeDamage

public void takeDamage(int damage)

heal

public void heal(int hp)

isShooting

public boolean isShooting()

setShooting

public void setShooting(boolean isShooting)

isWalking

public boolean isWalking()

setWalking

public void setWalking(boolean isWalking)

isHoldingWeapon

public boolean isHoldingWeapon()

setHoldingWeapon

public void setHoldingWeapon(boolean holdingWeapon)

incrementCycle

public void incrementCycle()

draw

public void draw(java.awt.Graphics2D g,
                 int screenX,
                 int screenY)