Corgi Engine v9.3
MoreMountains.CorgiEngine.AIStairsRandomizer Class Reference

This class is only meant to be used in the MinimalStairs demo scene In it, a blue RectangleAI character will move (semi) randomly on the stairs there As you can see below, it's a very basic AI, that will randomly decide to go up or down every once in a while More...

Inheritance diagram for MoreMountains.CorgiEngine.AIStairsRandomizer:

Public Attributes

Vector2 DecisionChangeDelay = new Vector2(3f, 6f)
 the frequency, in seconds, at which this AI will change its direction More...
 
bool GoingUp
 whether or not this AI is currently trying to go up stairs More...
 
bool GoingDown
 whether or not this AI is currently trying to go down stairs More...
 
float NextDecisionAt
 the next time this AI will change its direction More...
 

Protected Member Functions

virtual void Start ()
 On Start we grab our CharacterStairs component and randomize our direction More...
 
virtual void Update ()
 On Update we pick a new direction if needed More...
 
virtual void RandomizeDirection ()
 Randomizes the direction this AI is going to take next time it meets stairs More...
 

Protected Attributes

CharacterStairs _characterStairs
 

Detailed Description

This class is only meant to be used in the MinimalStairs demo scene In it, a blue RectangleAI character will move (semi) randomly on the stairs there As you can see below, it's a very basic AI, that will randomly decide to go up or down every once in a while

Member Function Documentation

◆ RandomizeDirection()

virtual void MoreMountains.CorgiEngine.AIStairsRandomizer.RandomizeDirection ( )
protectedvirtual

Randomizes the direction this AI is going to take next time it meets stairs

◆ Start()

virtual void MoreMountains.CorgiEngine.AIStairsRandomizer.Start ( )
protectedvirtual

On Start we grab our CharacterStairs component and randomize our direction

◆ Update()

virtual void MoreMountains.CorgiEngine.AIStairsRandomizer.Update ( )
protectedvirtual

On Update we pick a new direction if needed

Member Data Documentation

◆ _characterStairs

CharacterStairs MoreMountains.CorgiEngine.AIStairsRandomizer._characterStairs
protected

◆ DecisionChangeDelay

Vector2 MoreMountains.CorgiEngine.AIStairsRandomizer.DecisionChangeDelay = new Vector2(3f, 6f)

the frequency, in seconds, at which this AI will change its direction

◆ GoingDown

bool MoreMountains.CorgiEngine.AIStairsRandomizer.GoingDown

whether or not this AI is currently trying to go down stairs

◆ GoingUp

bool MoreMountains.CorgiEngine.AIStairsRandomizer.GoingUp

whether or not this AI is currently trying to go up stairs

◆ NextDecisionAt

float MoreMountains.CorgiEngine.AIStairsRandomizer.NextDecisionAt

the next time this AI will change its direction


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