This decision will roll a dice and return true if the result is below or equal the Odds value.
More...
|
| override bool | Decide () |
| | On Decide we check if the odds are in our favour.
|
| bool | Decide () |
| | Decide will be performed every frame while the Brain is in a state this Decision is in. Should return true or false, which will then determine the transition's outcome.
|
| virtual void | Initialization () |
| | Meant to be overridden, called when the game starts.
|
| virtual void | OnEnterState () |
| | Meant to be overridden, called when the Brain enters a State this Decision is in.
|
| virtual void | OnExitState () |
| | Meant to be overridden, called when the Brain exits a State this Decision is in.
|
|
| int | TotalChance = 10 |
| | the total number to consider (in "5 out of 10", this would be 10)
|
| int | Odds = 4 |
| | when rolling our dice, if the result is below the Odds, this decision will be true. In "5 out of 10", this would be 5.
|
| string | Label |
| | a label you can set to organize your AI Decisions, not used by anything else
|
|
| virtual bool | EvaluateOdds () |
| | Returns true if the Brain's Target is facing us (this will require that the Target has a Character component)
|
| virtual void | Awake () |
| | On Awake we grab our Brain.
|
This decision will roll a dice and return true if the result is below or equal the Odds value.
◆ Decide()
| override bool MoreMountains.TopDownEngine.AIDecisionRandom.Decide |
( |
| ) |
|
On Decide we check if the odds are in our favour.
- Returns
◆ EvaluateOdds()
| virtual bool MoreMountains.TopDownEngine.AIDecisionRandom.EvaluateOdds |
( |
| ) |
|
|
protectedvirtual |
Returns true if the Brain's Target is facing us (this will require that the Target has a Character component)
- Returns
◆ _targetCharacter
| Character MoreMountains.TopDownEngine.AIDecisionRandom._targetCharacter |
|
protected |
◆ Odds
| int MoreMountains.TopDownEngine.AIDecisionRandom.Odds = 4 |
when rolling our dice, if the result is below the Odds, this decision will be true. In "5 out of 10", this would be 5.
◆ TotalChance
| int MoreMountains.TopDownEngine.AIDecisionRandom.TotalChance = 10 |
the total number to consider (in "5 out of 10", this would be 10)
The documentation for this class was generated from the following file:
- H:/Code/MoreMountains/topdownengine/Assets/TopDownEngine/Common/Scripts/Characters/AI/Advanced/AIDecisionRandom.cs