My Project
Loading...
Searching...
No Matches
Public Member Functions | List of all members
RoslynCSharp.Example.TestCrawler Class Reference
Inheritance diagram for RoslynCSharp.Example.TestCrawler:
RoslynCSharp.Example.MazeCrawler

Public Member Functions

override MazeDirection DecideDirection (Vector2Int position, bool canMoveLeft, bool canMoveRight, bool canMoveUp, bool canMoveDown)
 When overriden should return the MazeDirection that the crawler should move given the current state.
 
- Public Member Functions inherited from RoslynCSharp.Example.MazeCrawler
abstract MazeDirection DecideDirection (Vector2Int position, bool canMoveLeft, bool canMoveRight, bool canMoveUp, bool canMoveDown)
 When overriden should return the MazeDirection that the crawler should move given the current state.
 
void Awake ()
 Called by Unity.
 
void Update ()
 Called by Unity.
 
void Restart ()
 Resets the maze crawler to its initial start position.
 

Additional Inherited Members

- Public Attributes inherited from RoslynCSharp.Example.MazeCrawler
GameObject breadcrumbPrefab
 The breadcrum game object that is dropped at every position.
 
float moveSpeed = 2f
 The move speed of the crawler move.
 

Member Function Documentation

◆ DecideDirection()

override MazeDirection RoslynCSharp.Example.TestCrawler.DecideDirection ( Vector2Int  position,
bool  canMoveLeft,
bool  canMoveRight,
bool  canMoveUp,
bool  canMoveDown 
)
inlinevirtual

When overriden should return the MazeDirection that the crawler should move given the current state.

Parameters
positionThe current maze index position
canMoveLeftCan the crawler move left or is there a wall in the way
canMoveRightCan the crawler move right or is there a wall in the way
canMoveUpCan the crawler move up or is there a wall in the way
canMoveDownCan the crawler move down or is there a wall in the way
Returns

Implements RoslynCSharp.Example.MazeCrawler.


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