public interface IGame
Modifier and Type | Method and Description |
---|---|
Long |
actionTurn()
Return the number of actions performed since the bot started.
|
Boolean |
canEngrave()
True if the player is capable of engraving and is not currently on the plane of air or water.
|
Boolean |
canPray()
True if the player can safely pray (95% confidence)
|
ILevel |
currentLevel()
Returns the current dungeon level.
|
IFrame |
frame()
Returns the last snapshot of the virtual terminal screen.
|
Set<String> |
genocided()
Returns the set of monster types and classes that have been genocided in the game.
|
Long |
gold()
How much gold the player is carrying in total (including bagged gold).
|
Long |
goldAvailable()
How much gold the player is carrying in main inventory.
|
Map.Entry<Character,IItem> |
have(IPredicate<IItem> selector,
HaveOption... opts)
Return an inventory slot-item pair of an item accepted by a custom predicate.
|
Map.Entry<Character,IItem> |
have(String itemName,
HaveOption... opts)
Return an inventory slot-item pair of an item with the given name.
|
List<Map.Entry<Character,IItem>> |
haveAll(IPredicate<IItem> selector,
HaveOption... opts)
Return all inventory slot-item pairs of items accepted by a custom predicate.
|
List<Map.Entry<Character,IItem>> |
haveAll(String itemName,
HaveOption... opts)
Return all inventory slot-item pairs of items with the given name.
|
Map.Entry<Character,IItem> |
haveLevitationItemOn()
Returns the slot-item pair of a levitation item currently in use (or null)
|
List<IItemType> |
identifyPossibilities(IItem item)
Returns the list of possible item types for the item considering the
current game discoveries.
|
IItemType |
identifyType(IItem item)
Returns IItemType with properties of the item that can be determined
considering the current game discoveries.
|
Boolean |
isBelowCastle()
True when the player is below the castle or on the right
side of the castle moat.
|
Boolean |
isBelowMedusa()
True when the player is below the medusa's level or on the right
side of the island.
|
Boolean |
isCorpseFresh(IPosition pos,
IItem corpse)
Corpse freshness tracker – checks if the corpse at given position is likely
good to eat.
|
Boolean |
isInGehennom()
Gehennom including the valley excluding Vlad's – prayers will be redirected to Moloch
|
Boolean |
knowIdentity(IItem item)
Returns true if the IItemType for the item can be determined unambiguously
from current discoveries (the item is identified for practical purposes).
|
IPlayer |
player()
Returns the player representation.
|
IGame |
previousGamestate()
Returns the IGame snapshot from previous action turn.
|
Long |
score()
Return the current game score.
|
Long |
turn()
Return the number of game turns passed since the bot started.
|
Boolean |
wantPriceId(IItem item)
True if trying to buy or sell the item would help its identification.
|
Boolean |
wasTried(IItem item)
True if trying to use the item may help with identification.
|
Long |
weightSum()
Estimate of the sum of weight of all carried items.
|
IFrame frame()
IPlayer player()
Boolean canPray()
Boolean canEngrave()
Map.Entry<Character,IItem> haveLevitationItemOn()
Set<String> genocided()
ILevel currentLevel()
Long weightSum()
Long gold()
Long goldAvailable()
Boolean isCorpseFresh(IPosition pos, IItem corpse)
IPlayer.canEat(IItem)
Long turn()
Long actionTurn()
Long score()
IItemType identifyType(IItem item)
knowIdentity(IItem)
List<IItemType> identifyPossibilities(IItem item)
Boolean knowIdentity(IItem item)
Boolean wantPriceId(IItem item)
Boolean wasTried(IItem item)
IGame previousGamestate()
Map.Entry<Character,IItem> have(IPredicate<IItem> selector, HaveOption... opts)
selector
- Custom-implemented filterMap.Entry<Character,IItem> have(String itemName, HaveOption... opts)
IItem.name()
and the IItemType.name()
if the item
can be identified.itemName
- The sought item or type nameopts
- Additional restrictionsList<Map.Entry<Character,IItem>> haveAll(IPredicate<IItem> selector, HaveOption... opts)
selector
- Custom-implemented filteropts
- Additional restrictionsList<Map.Entry<Character,IItem>> haveAll(String itemName, HaveOption... opts)
IItem.name()
and the IItemType.name()
if the item
can be identified.itemName
- The sought item or type nameopts
- Additional restrictionsBoolean isInGehennom()
Boolean isBelowMedusa()
Boolean isBelowCastle()