Class KnowledgeManager

java.lang.Object
com.realtime.crossfire.jxclient.knowledge.KnowledgeManager

public class KnowledgeManager extends Object
Manages all knowledge the player knows.
  • Constructor Details

    • KnowledgeManager

      public KnowledgeManager(@NotNull @NotNull GuiStateManager guiStateManager)
  • Method Details

    • selectCharacter

      public void selectCharacter()
      A character name was sent to the server.
    • addKnowledgeListener

      public void addKnowledgeListener(@NotNull @NotNull KnowledgeListener listener)
      Adds a KnowledgeListener to notify about changes.
      Parameters:
      listener - the listener to add
    • addKnowledgeType

      public void addKnowledgeType(@NotNull @NotNull String type, @NotNull @NotNull String name, int face, boolean canAttempt)
    • clearTypes

      public void clearTypes()
    • getTypes

      public int getTypes()
    • getTypeName

      @NotNull public @NotNull String getTypeName(int index)
    • getTypeFace

      public int getTypeFace(int index)
    • canAttemptType

      public boolean canAttemptType(@NotNull @NotNull String type)
    • addKnowledge

      public void addKnowledge(int index, @NotNull @NotNull String type, @NotNull @NotNull String title, int face)
    • getKnowledgeCount

      public int getKnowledgeCount()
    • getKnowledge

      @Nullable public @Nullable KnowledgeItem getKnowledge(int index)
      Returns a KnowledgeItem instance by index.
      Parameters:
      index - the index
      Returns:
      the item or null if the index is invalid
    • filterType

      public void filterType(int index)