be.saltwater.jaqel.creature.loaders
Class CreatureLoadData

java.lang.Object
  extended bybe.saltwater.jaqel.creature.loaders.CreatureLoadData

public class CreatureLoadData
extends java.lang.Object

Class to hold the data contained in a creature file. There is an instance in CreatureLoadHelper for each loaded type of creature (thus for each loaded creature file). It holds the default points and the CreatureTypeData for a certain creature type. CreatureLoader creates these objects and CreatureLoadHelper makes sure that they are only loaded one time.

Author:
Bruno Windels
See Also:
CreatureLoadHelper, CreatureLoader

Constructor Summary
CreatureLoadData(int tohit, int accuracy, int strength, int armor, int magic, int spell, java.lang.String defaultweapon, CreatureTypeData type_data)
           
 
Method Summary
 int getAccuracyPoints()
           
 int getArmorPoints()
           
 CreatureTypeData getCreatureTypeData()
           
 java.lang.String getDefaultWeapon()
           
 int getMagicPoints()
           
 int getSpellPoints()
           
 int getStrengthPoints()
           
 int getToHitPoints()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CreatureLoadData

public CreatureLoadData(int tohit,
                        int accuracy,
                        int strength,
                        int armor,
                        int magic,
                        int spell,
                        java.lang.String defaultweapon,
                        CreatureTypeData type_data)
Method Detail

getCreatureTypeData

public CreatureTypeData getCreatureTypeData()

getToHitPoints

public int getToHitPoints()

getAccuracyPoints

public int getAccuracyPoints()

getStrengthPoints

public int getStrengthPoints()

getArmorPoints

public int getArmorPoints()

getMagicPoints

public int getMagicPoints()

getSpellPoints

public int getSpellPoints()

getDefaultWeapon

public java.lang.String getDefaultWeapon()