C# Class Protogame.Wall

Represents a wall which blocks raycasts by AI agents.
These are placed such that is start to end were to make a circle, the normals face outward (on the left hand side from start to end).
Inheritance: IEntity
Afficher le fichier Open project: RedpointGames/Protogame

Méthodes publiques

Méthode Description
NormalOf ( Vector2 start, Vector2 end ) : Vector2
Render ( IGameContext gameContext, IRenderContext renderContext ) : void
Update ( IGameContext gameContext, IUpdateContext updateContext ) : void
Wall ( I2DRenderUtilities twoDRenderUtilities, Vector2 start, Vector2 end ) : Microsoft.Xna.Framework

Method Details

NormalOf() public static méthode

public static NormalOf ( Vector2 start, Vector2 end ) : Vector2
start Microsoft.Xna.Framework.Vector2
end Microsoft.Xna.Framework.Vector2
Résultat Microsoft.Xna.Framework.Vector2

Render() public méthode

public Render ( IGameContext gameContext, IRenderContext renderContext ) : void
gameContext IGameContext
renderContext IRenderContext
Résultat void

Update() public méthode

public Update ( IGameContext gameContext, IUpdateContext updateContext ) : void
gameContext IGameContext
updateContext IUpdateContext
Résultat void

Wall() public méthode

public Wall ( I2DRenderUtilities twoDRenderUtilities, Vector2 start, Vector2 end ) : Microsoft.Xna.Framework
twoDRenderUtilities I2DRenderUtilities
start Microsoft.Xna.Framework.Vector2
end Microsoft.Xna.Framework.Vector2
Résultat Microsoft.Xna.Framework