Skip to content

Instantly share code, notes, and snippets.

@AllGistsEqual
Created March 9, 2021 13:03
Show Gist options
  • Save AllGistsEqual/efb94b1df716cdace3a11aadaec566cb to your computer and use it in GitHub Desktop.
Save AllGistsEqual/efb94b1df716cdace3a11aadaec566cb to your computer and use it in GitHub Desktop.
/* processBehaviourChain()
* - check all gambits in the behaviour chain for a match
*/
/* getAvailableTargets()
* - get all targets matching the target type
*/
/* getMatchingTargets()
* - return only targets matching the selection criteria
*/
/* isActionAvailable()
* - check if the action is possible
* - (enough resources, material and so on)
*/
/* compareTargetHP()
* - check if the current target matches the hitpoint condition
*/
/* compareTargetStatus()
* - check if the current target matches the status condition
*/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment