Groovy Documentation

de.dewarim.goblin
[Groovy] Class AcademyService

java.lang.Object
  de.dewarim.goblin.AcademyService

class AcademyService

When a player character joins a guild, he or she gains the access to all academies of that guild. When the pc leaves, he looses this access along with the AcademyLevels gaines so far.


Property Summary
java.lang.Object globalConfigService

 
Constructor Summary
AcademyService()

 
Method Summary
LearningQueueElement addSkillSetToLearningQueue(PlayerCharacter pc, AcademySkillSet ass)

java.lang.Boolean checkPlayerAccess(PlayerCharacter pc, Academy academy)

Check if academy requires a guild

AcademyLevel createAcademyLevel(java.lang.Object pc, java.lang.Object academy)

java.util.Collection fetchAccessibleAcademies(PlayerCharacter pc, java.lang.Integer max, java.lang.Integer offset)

Find all Academies to which a player has access - this includes both the ones which are open to anybody and the ones to which the player has access through her guild memberships.

java.lang.Integer fetchAccessibleAcademyCount(PlayerCharacter pc)

java.util.Collection filterSkillSets(PlayerCharacter pc, Academy academy)

void joinGuild(PlayerCharacter pc, Guild guild)

void leaveGuild(PlayerCharacter pc, Guild guild)

java.lang.Boolean payForSkillSet(PlayerCharacter pc, AcademySkillSet ass)

void refundLearningCost(LearningQueueElement queueElement)

void removeSkillSetFromLearningQueue(PlayerCharacter pc, AcademySkillSet ass)

Remove an element from the player character's learning queue and move the other elements up by recalculating their finishing time.

 
Methods inherited from class java.lang.Object
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll()
 

Property Detail

globalConfigService

java.lang.Object globalConfigService


 
Constructor Detail

AcademyService

AcademyService()


 
Method Detail

addSkillSetToLearningQueue

LearningQueueElement addSkillSetToLearningQueue(PlayerCharacter pc, AcademySkillSet ass)


checkPlayerAccess

java.lang.Boolean checkPlayerAccess(PlayerCharacter pc, Academy academy)
Check if academy requires a guild
Parameters:
pc - a PlayerCharacter
academy - an Academy
Returns:
true if player may access this Academy, false if he lacks access (which is granted by guild membership)


createAcademyLevel

AcademyLevel createAcademyLevel(java.lang.Object pc, java.lang.Object academy)


fetchAccessibleAcademies

java.util.Collection fetchAccessibleAcademies(PlayerCharacter pc, java.lang.Integer max, java.lang.Integer offset)
Find all Academies to which a player has access - this includes both the ones which are open to anybody and the ones to which the player has access through her guild memberships.
Parameters:
pc - the PlayerCharacter
max - maximum number of academies per page
offset - start with academy #offset
Returns:
a collection of academies which are accessible to the player character - limited by max and offset.


fetchAccessibleAcademyCount

java.lang.Integer fetchAccessibleAcademyCount(PlayerCharacter pc)


filterSkillSets

java.util.Collection filterSkillSets(PlayerCharacter pc, Academy academy)


joinGuild

void joinGuild(PlayerCharacter pc, Guild guild)


leaveGuild

void leaveGuild(PlayerCharacter pc, Guild guild)


payForSkillSet

java.lang.Boolean payForSkillSet(PlayerCharacter pc, AcademySkillSet ass)


refundLearningCost

void refundLearningCost(LearningQueueElement queueElement)


removeSkillSetFromLearningQueue

void removeSkillSetFromLearningQueue(PlayerCharacter pc, AcademySkillSet ass)
Remove an element from the player character's learning queue and move the other elements up by recalculating their finishing time.
Parameters:
pc
ass


 

Groovy Documentation