-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
I think the text parser components went wrong, corrected
- Loading branch information
Showing
13 changed files
with
36 additions
and
66 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,32 +16,21 @@ | |
*/ | ||
package toniarts.openkeeper.view.text; | ||
|
||
import com.simsilica.es.Entity; | ||
import com.simsilica.es.EntityComponent; | ||
import java.util.Collection; | ||
import toniarts.openkeeper.game.map.IMapTileInformation; | ||
import toniarts.openkeeper.tools.convert.map.Creature; | ||
import toniarts.openkeeper.tools.convert.map.Door; | ||
import toniarts.openkeeper.tools.convert.map.GameObject; | ||
import toniarts.openkeeper.tools.convert.map.Trap; | ||
|
||
/** | ||
* Provides text parsing services for users | ||
* | ||
* @author Toni Helenius <[email protected]> | ||
*/ | ||
public interface TextParser { | ||
|
||
String parseText(String text, Entity entity, Creature creature); | ||
|
||
String parseText(String text, Entity entity, Trap trap); | ||
CreatureTextParser getCreatureTextParser(); | ||
|
||
String parseText(String text, Entity entity, Door door); | ||
TrapTextParser getTrapTextParser(); | ||
|
||
String parseText(String text, Entity entity, GameObject gameObject); | ||
DoorTextParser getDoorTextParser(); | ||
|
||
String parseText(String text, IMapTileInformation mapTile); | ||
ObjectTextParser getObjectTextParser(); | ||
|
||
Collection<Class<? extends EntityComponent>> getWatchedComponents(); | ||
MapTileTextParser getMapTileTextParser(); | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters