be.saltwater.jaqel.level
Class Identity

java.lang.Object
  extended bybe.saltwater.jaqel.level.Identity

public class Identity
extends java.lang.Object

Created to contain CreatureSharedData when a game/level has ended and everything is destroyed. An identity is saved to a file by the user as a kind of "user profile".

Author:
Robin Wittevrongel
See Also:
CreatureSharedData

Constructor Summary
Identity(CreatureSharedData points, java.lang.String heroType, java.lang.String name, int currentGameLevel)
           
 
Method Summary
 CreatureSharedData getCreatureSharedData()
          Returns the CreatureSharedData object of this identity.
 int getCurrentLevel()
          Returns the name of the level the player has last reached.
 java.lang.String getHeroType()
           
 java.lang.String getName()
          Returns the name of the hero object this identity contains.
 void setCurrentLevel(int currentGameLevel)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Identity

public Identity(CreatureSharedData points,
                java.lang.String heroType,
                java.lang.String name,
                int currentGameLevel)
Method Detail

getCreatureSharedData

public CreatureSharedData getCreatureSharedData()
Returns the CreatureSharedData object of this identity.


getName

public java.lang.String getName()
Returns the name of the hero object this identity contains.


getHeroType

public java.lang.String getHeroType()

getCurrentLevel

public int getCurrentLevel()
Returns the name of the level the player has last reached.


setCurrentLevel

public void setCurrentLevel(int currentGameLevel)