DecisionFlex
Utilty AI for Unity
 All Classes Namespaces Functions Variables Events Pages
Public Member Functions | List of all members
TenPN.DecisionFlex.HierarchicalContext Class Reference

context decorator for a tree of contexts More...

Inheritance diagram for TenPN.DecisionFlex.HierarchicalContext:
TenPN.DecisionFlex.IContext

Public Member Functions

 HierarchicalContext (IContext self, IContext parent)
 
bool HasContext< T > (Object key)
 
GetContext< T > (Object key)
 
- Public Member Functions inherited from TenPN.DecisionFlex.IContext
bool HasContext< T > (object key)
 
GetContext< T > (object key)
 

Detailed Description

context decorator for a tree of contexts

the weapon selection demo uses one context per enemy, with each parented to a master context that contains inventory context.

Constructor & Destructor Documentation

TenPN.DecisionFlex.HierarchicalContext.HierarchicalContext ( IContext  self,
IContext  parent 
)
inline
Parameters
selfthe first context to check for a key in.
parentthe context to defer to if self doesn't contain the key. can be null.

Member Function Documentation

T TenPN.DecisionFlex.HierarchicalContext.GetContext< T > ( Object  key)
inline

fetches from self first, and parent if not found

bool TenPN.DecisionFlex.HierarchicalContext.HasContext< T > ( Object  key)
inline

true if key in self, or parent


The documentation for this class was generated from the following file: