net.sf.mud4j.character
Interface Character

All Superinterfaces:
Damageable, Effectable, Messageable
All Known Implementing Classes:
AbstractCharacter, CharacterEffectDecorator, NonPlayerCharacter, PlayerCharacter

public interface Character
extends Damageable, Messageable, Effectable

Interface for defining different types of players.

Author:
Matthew Purland

Method Summary
 java.util.List<CharacterAbility> getAbilities()
          Get character abilities that the character has.
 java.util.List<Item> getItems()
          Get character items that the character has possession of.
 int getLevel()
          Get level of character.
 java.lang.String getName()
          Get the name of the character.
 boolean hasAbility(CharacterAbility ability)
          Determines if the character has an ability.
 boolean hasItem(Item item)
          Does the player have a particular item?
 
Methods inherited from interface net.sf.mud4j.damage.Damageable
getDamageBehavior, setDamageBehavior
 
Methods inherited from interface net.sf.mud4j.character.Messageable
message
 
Methods inherited from interface net.sf.mud4j.effect.Effectable
getEffectBehavior, setEffectBehavior
 

Method Detail

getName

java.lang.String getName()
Get the name of the character.

Returns:
Returns the name of the character.

getAbilities

java.util.List<CharacterAbility> getAbilities()
Get character abilities that the character has.

Returns:
Returns collection of character abilities.

getItems

java.util.List<Item> getItems()
Get character items that the character has possession of.

Returns:
Returns a list of items that the character has.

hasAbility

boolean hasAbility(CharacterAbility ability)
Determines if the character has an ability.

Returns:
Returns whether the character has an ability.

hasItem

boolean hasItem(Item item)
Does the player have a particular item?

Parameters:
item - Item for which the player might have.
Returns:
Returns if the character has an item.

getLevel

int getLevel()
Get level of character.

Returns:
Returns the level of the character.


Copyright © 2006-2007 mud4j. All Rights Reserved.