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
ファイルを表示 Open project: RedpointGames/Protogame

Public Methods

Method 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 method

public static NormalOf ( Vector2 start, Vector2 end ) : Vector2
start Microsoft.Xna.Framework.Vector2
end Microsoft.Xna.Framework.Vector2
return Microsoft.Xna.Framework.Vector2

Render() public method

public Render ( IGameContext gameContext, IRenderContext renderContext ) : void
gameContext IGameContext
renderContext IRenderContext
return void

Update() public method

public Update ( IGameContext gameContext, IUpdateContext updateContext ) : void
gameContext IGameContext
updateContext IUpdateContext
return void

Wall() public method

public Wall ( I2DRenderUtilities twoDRenderUtilities, Vector2 start, Vector2 end ) : Microsoft.Xna.Framework
twoDRenderUtilities I2DRenderUtilities
start Microsoft.Xna.Framework.Vector2
end Microsoft.Xna.Framework.Vector2
return Microsoft.Xna.Framework