Public Member Functions | Private Member Functions | Private Attributes
rgoap.common.VariableEffect Class Reference

List of all members.

Public Member Functions

def __init__
def __repr__
def __str__
def matches_condition

Private Member Functions

def _is_reachable

Private Attributes

 _condition

Detailed Description

This variable effect can by default reach every value and therefore
matches every worldstate.

To make an effect reach not every possible value of its condition,
subclass and override _is_reachable.

Definition at line 221 of file common.py.


Constructor & Destructor Documentation

def rgoap.common.VariableEffect.__init__ (   self,
  condition 
)

Definition at line 228 of file common.py.


Member Function Documentation

Definition at line 235 of file common.py.

Definition at line 232 of file common.py.

def rgoap.common.VariableEffect._is_reachable (   self,
  value,
  start_value 
) [private]
Return a Boolean whether this variable effect can reach the given
value from the given start_value. If this effect can reach certain
values from any value, the start_value just might be ignored.

Defaults to True, subclass to limit variability.

Definition at line 247 of file common.py.

def rgoap.common.VariableEffect.matches_condition (   self,
  worldstate,
  start_worldstate 
)
Return whether this effect can reach worldstate from start_worldstate

Definition at line 242 of file common.py.


Member Data Documentation

Definition at line 229 of file common.py.


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


rgoap
Author(s): Felix Kolbe
autogenerated on Sun Oct 5 2014 23:53:02