C# Class Fouls, goalBall

Foul System This system keeps track of all of the fouls that can happen in a game and give the ball to the player that should get it. Current fouls are: Time foul (have possession of the ball for over 10 seconds) Out of bounts (throw the ball out of bounds) Dead Ball Ball stays in neutral area for longer than 3 seconds.
Inheritance: NetworkBehaviour
Afficher le fichier Open project: DrexelGoalBall/goalBall Class Usage Examples

Méthodes publiques

Свойство Type Description
BR BallReset,
BT BreakTimer,
BlueNeutralArea string
BlueTeamArea string
DeadBallTime int
GT GameTimer,
RedNeutralArea string
RedTeamArea string
TimerFoulTime int
ball GameObject
ballLocation ListObjectLocation,
ballPossession Possession,

Méthodes publiques

Méthode Description
LineOut ( ) : void

Calls the LineOut foul and all associated actions.

Start ( ) : void

Initializes all of the objects and variables needed for this script.

ThrowDeadBallFoul ( ) : void

Throw DeadBall Foul and all associated actions.

ThrowTimeFoul ( bool inRedZone ) : void

Throw the time Foul and all associated actions.

Update ( ) : void

Main function that checks whether a foul has been made in real time. Keeps a timer running for checking fouls.

Private Methods

Méthode Description
foul ( bool committedByRed, bool resetToClosest ) : void

Activates the move of the foul and makes the Referee call play at the end.ss

Method Details

LineOut() public méthode

Calls the LineOut foul and all associated actions.
public LineOut ( ) : void
Résultat void

Start() public méthode

Initializes all of the objects and variables needed for this script.
public Start ( ) : void
Résultat void

ThrowDeadBallFoul() public méthode

Throw DeadBall Foul and all associated actions.
public ThrowDeadBallFoul ( ) : void
Résultat void

ThrowTimeFoul() public méthode

Throw the time Foul and all associated actions.
public ThrowTimeFoul ( bool inRedZone ) : void
inRedZone bool Whether the foul took place in the red zone or not
Résultat void

Update() public méthode

Main function that checks whether a foul has been made in real time. Keeps a timer running for checking fouls.
public Update ( ) : void
Résultat void

Property Details

BR public_oe property

public BallReset, BR
Résultat BallReset,

BT public_oe property

public BreakTimer, BT
Résultat BreakTimer,

BlueNeutralArea public_oe property

public string BlueNeutralArea
Résultat string

BlueTeamArea public_oe property

public string BlueTeamArea
Résultat string

DeadBallTime public_oe property

public int DeadBallTime
Résultat int

GT public_oe property

public GameTimer, GT
Résultat GameTimer,

RedNeutralArea public_oe property

public string RedNeutralArea
Résultat string

RedTeamArea public_oe property

public string RedTeamArea
Résultat string

TimerFoulTime public_oe property

public int TimerFoulTime
Résultat int

ball public_oe property

public GameObject ball
Résultat GameObject

ballLocation public_oe property

public ListObjectLocation, ballLocation
Résultat ListObjectLocation,

ballPossession public_oe property

public Possession, ballPossession
Résultat Possession,