C# Class SimpleSoccer.Net.PlayerBase

Inheritance: MovingEntity, IDisposable
Afficher le fichier Open project: soshimozi/SimpleSoccer.Net Class Usage Examples

Protected Properties

Свойство Type Description
_steeringBehaviors SteeringBehaviors
_vecPlayerVB List

Méthodes publiques

Méthode Description
Dispose ( ) : void
FindSupport ( ) : void
IsThreatened ( ) : bool
PlayerBase ( SoccerTeam homeTeam, int homeRegionIndex, Vector2D heading, Vector2D velocity, double mass, double maxForce, double maxSpeed, double maxTurnRate, double scale, PlayerRoles role ) : System
SetDefaultHomeRegion ( ) : void
SetKickoffRegion ( ) : void
SortByDistanceToOpponentsGoal ( PlayerBase p1, PlayerBase p2 ) : bool
SortByReversedDistanceToOpponentsGoal ( PlayerBase p1, PlayerBase p2 ) : bool
TrackBall ( ) : void
TrackTarget ( ) : void

Private Methods

Méthode Description
IsPositionInFrontOfPlayer ( Vector2D position ) : bool

Method Details

Dispose() public méthode

public Dispose ( ) : void
Résultat void

FindSupport() public méthode

public FindSupport ( ) : void
Résultat void

IsThreatened() public méthode

public IsThreatened ( ) : bool
Résultat bool

PlayerBase() public méthode

public PlayerBase ( SoccerTeam homeTeam, int homeRegionIndex, Vector2D heading, Vector2D velocity, double mass, double maxForce, double maxSpeed, double maxTurnRate, double scale, PlayerRoles role ) : System
homeTeam SoccerTeam
homeRegionIndex int
heading Vector2D
velocity Vector2D
mass double
maxForce double
maxSpeed double
maxTurnRate double
scale double
role PlayerRoles
Résultat System

SetDefaultHomeRegion() public méthode

public SetDefaultHomeRegion ( ) : void
Résultat void

SetKickoffRegion() public méthode

public SetKickoffRegion ( ) : void
Résultat void

SortByDistanceToOpponentsGoal() public méthode

public SortByDistanceToOpponentsGoal ( PlayerBase p1, PlayerBase p2 ) : bool
p1 PlayerBase
p2 PlayerBase
Résultat bool

SortByReversedDistanceToOpponentsGoal() public méthode

public SortByReversedDistanceToOpponentsGoal ( PlayerBase p1, PlayerBase p2 ) : bool
p1 PlayerBase
p2 PlayerBase
Résultat bool

TrackBall() public méthode

public TrackBall ( ) : void
Résultat void

TrackTarget() public méthode

public TrackTarget ( ) : void
Résultat void

Property Details

_steeringBehaviors protected_oe property

Steering behavior manager
protected SteeringBehaviors,SimpleSoccer.Net _steeringBehaviors
Résultat SteeringBehaviors

_vecPlayerVB protected_oe property

The vertex buffer
protected List _vecPlayerVB
Résultat List