|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IItemUsefulness
Interface that allows you to define "usefulness of items". Note that the "usefulness" should depend on the current situation of the bot! That is - if the bot is almost dead, any health should be really useful.
Used by AdvancedItems
to obtain current level of item's usefulness for the bot.
Note that it might be useful to define different item filters according to their type of usage (e.g., different filter for weapons and health).
Method Summary | |
---|---|
double |
getItemUsefulness(AdvancedItems advancedItems,
Items items,
Item item,
double usefulness)
Tells how much the item is useful to the bot - must return values between 0 and 1 (inclusive). |
Method Detail |
---|
double getItemUsefulness(AdvancedItems advancedItems, Items items, Item item, double usefulness)
advancedItems
- item
- usefulness
- degree of usefulness, 0 - return also useless, 1 - return only really truly useful items which are MUST HAVE!
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |