Class FloatSum
Value is the sum of all effectors
Inherited Members
Namespace: LobsterFramework
Assembly: LobsterFramework.dll
Syntax
public class FloatSum : CombinedValue<float>
Constructors
| Improve this Doc View SourceFloatSum(int, bool, bool)
Declaration
public FloatSum(int value, bool nonNegative = false, bool addNegative = true)
Parameters
Type | Name | Description |
---|---|---|
int | value | |
bool | nonNegative | |
bool | addNegative |
Methods
| Improve this Doc View SourceCompatible(float)
Determines if the effector can be added
Declaration
public override bool Compatible(float obj)
Parameters
Type | Name | Description |
---|---|---|
float | obj | The value of the effector to be examined |
Returns
Type | Description |
---|---|
bool | true if can be added, otherwise false |
Overrides
| Improve this Doc View SourceComputeValue()
Compute the value taking all effectors into account
Declaration
protected override float ComputeValue()
Returns
Type | Description |
---|---|
float |