BrawlerAGD BrawlerAGD 0.0.0 ALPHA
An Automated Game Designer (AGD) Used for Creating Brawler Fighting Games. An Automated Game Designer for Brawler Video Games
Controller Class Reference
Inheritance diagram for Controller:
AI HoldJump HoldLeft

Public Member Functions

 Controller (Player player, Player opponent)
 
void SetPlayer1Buttons ()
 
void SetPlayer2Buttons ()
 
virtual void Update ()
 
Vector2 GetClosestPlatformDirection ()
 
virtual float GetAxis (string code)
 
virtual bool GetKeyDown (string code)
 
bool OverPit (Vector2 offset)
 
bool OverPit ()
 
bool PlayerInRangeOfMove ()
 
bool OpponentAbove ()
 
bool OpponentRight ()
 
bool ApproachingEdge ()
 
bool JumpsExhausted ()
 

Public Attributes

string horizontalAxis
 
string jumpKey
 
string pauseKey
 
string move1Key
 
Player player
 
Player opponent
 
Transform playerTransform
 
LayerMask mask
 

Constructor & Destructor Documentation

◆ Controller()

Controller.Controller ( Player  player,
Player  opponent 
)

ColliderDistance2D properties distance Gets the distance between two colliders. isOverlapped Gets whether the distance represents an overlap or not. isValid Gets whether the distance is valid or not. normal A normalized vector that points from pointB to pointA. pointA A point on a Collider2D that is a specific distance away from pointB. pointB A point on a Collider2D that is a specific distance away from pointA.

Member Function Documentation

◆ ApproachingEdge()

bool Controller.ApproachingEdge ( )

◆ GetAxis()

virtual float Controller.GetAxis ( string  code)
virtual

Reimplemented in HoldJump, HoldLeft, and AI.

◆ GetClosestPlatformDirection()

Vector2 Controller.GetClosestPlatformDirection ( )

◆ GetKeyDown()

virtual bool Controller.GetKeyDown ( string  code)
virtual

Reimplemented in HoldJump, HoldLeft, and AI.

◆ JumpsExhausted()

bool Controller.JumpsExhausted ( )

◆ OpponentAbove()

bool Controller.OpponentAbove ( )

◆ OpponentRight()

bool Controller.OpponentRight ( )

◆ OverPit() [1/2]

bool Controller.OverPit ( )

◆ OverPit() [2/2]

bool Controller.OverPit ( Vector2  offset)

◆ PlayerInRangeOfMove()

bool Controller.PlayerInRangeOfMove ( )

◆ SetPlayer1Buttons()

void Controller.SetPlayer1Buttons ( )

◆ SetPlayer2Buttons()

void Controller.SetPlayer2Buttons ( )

◆ Update()

virtual void Controller.Update ( )
virtual

Reimplemented in AI.

Member Data Documentation

◆ horizontalAxis

string Controller.horizontalAxis

◆ jumpKey

string Controller.jumpKey

◆ mask

LayerMask Controller.mask

◆ move1Key

string Controller.move1Key

◆ opponent

Player Controller.opponent

◆ pauseKey

string Controller.pauseKey

◆ player

Player Controller.player

◆ playerTransform

Transform Controller.playerTransform

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