Class: cef_storage
Enemy evaluation storage binding.
Source
C++ class cef_storage
Custom Constructor
cef_storage
Extends
Methods
evaluate()
Call Signature
evaluate(functionName: string, member: game_object): number;Run an evaluation function for a live game object.
Parameters
| Parameter | Type | Description |
|---|---|---|
functionName | string | Registered evaluation function name. |
member | game_object | Object used as the evaluating actor. |
Returns
number
Function score, or 0 when the function or object role is invalid.
Remarks
Prefer the four-object overload for non-ALife item evaluators; shorter engine overloads do not fill item slots.
Call Signature
evaluate(
functionName: string,
member: game_object,
enemy: game_object): number;Run an evaluation function for a live actor and enemy pair.
Parameters
| Parameter | Type | Description |
|---|---|---|
functionName | string | Registered evaluation function name. |
member | game_object | Object used as the evaluating actor. |
enemy | game_object | Object used as the target. |
Returns
number
Function score, or 0 when the function or object role is invalid.
Remarks
Prefer the four-object overload for non-ALife item evaluators; shorter engine overloads do not fill item slots.
Call Signature
evaluate(
functionName: string,
member: game_object,
enemy: game_object,
memberItem: game_object): number;Run an evaluation function for a live actor, target, and actor item.
Parameters
| Parameter | Type | Description |
|---|---|---|
functionName | string | Registered evaluation function name. |
member | game_object | Object used as the evaluating actor. |
enemy | game_object | Object used as the target. |
memberItem | game_object | Item owned or considered by the evaluating actor. |
Returns
number
Function score, or 0 when the function or object role is invalid.
Remarks
Prefer the four-object overload for non-ALife item evaluators; shorter engine overloads do not fill item slots.
Call Signature
evaluate(
functionName: string,
member: game_object,
enemy: game_object,
memberItem: game_object,
enemyItem: game_object): number;Run an evaluation function for live actor and target context.
Parameters
| Parameter | Type | Description |
|---|---|---|
functionName | string | Registered evaluation function name. |
member | game_object | Object used as the evaluating actor. |
enemy | game_object | Object used as the target. |
memberItem | game_object | Item owned or considered by the evaluating actor. |
enemyItem | game_object | Item owned or considered by the target. |
Returns
number
Function score, or 0 when the function or object role is invalid.
Call Signature
evaluate(functionName: string, member: cse_alife_object): number;Run an evaluation function for an ALife object.
Parameters
| Parameter | Type | Description |
|---|---|---|
functionName | string | Registered evaluation function name. |
member | cse_alife_object | Object used as the evaluating actor. |
Returns
number
Function score, or 0 when the function or object role is invalid.
Call Signature
evaluate(
functionName: string,
member: cse_alife_object,
enemy: cse_alife_object): number;Run an evaluation function for an ALife actor and enemy pair.
Parameters
| Parameter | Type | Description |
|---|---|---|
functionName | string | Registered evaluation function name. |
member | cse_alife_object | Object used as the evaluating actor. |
enemy | cse_alife_object | Object used as the target. |
Returns
number
Function score, or 0 when the function or object role is invalid.
Call Signature
evaluate(
functionName: string,
member: cse_alife_object,
enemy: cse_alife_object,
memberItem: cse_alife_object): number;Run an evaluation function for ALife actor, target, and actor item context.
Parameters
| Parameter | Type | Description |
|---|---|---|
functionName | string | Registered evaluation function name. |
member | cse_alife_object | Object used as the evaluating actor. |
enemy | cse_alife_object | Object used as the target. |
memberItem | cse_alife_object | Item owned or considered by the evaluating actor. |
Returns
number
Function score, or 0 when the function or object role is invalid.
Call Signature
evaluate(
functionName: string,
member: cse_alife_object,
enemy: cse_alife_object,
memberItem: cse_alife_object,
enemyItem: cse_alife_object): number;Run an evaluation function for full ALife actor and target context.
Parameters
| Parameter | Type | Description |
|---|---|---|
functionName | string | Registered evaluation function name. |
member | cse_alife_object | Object used as the evaluating actor. |
enemy | cse_alife_object | Object used as the target. |
memberItem | cse_alife_object | Item owned or considered by the evaluating actor. |
enemyItem | cse_alife_object | Item owned or considered by the target. |
Returns
number
Function score, or 0 when the function or object role is invalid.
Properties
__name
readonly __name: string;LuaBind instance constructor name.
Inherited from
__name
readonly static __name: string;LuaBind class constructor name.