C# 클래스 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).
상속: IEntity
파일 보기 프로젝트 열기: RedpointGames/Protogame

공개 메소드들

메소드 설명
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

메소드 상세

NormalOf() 공개 정적인 메소드

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

Render() 공개 메소드

public Render ( IGameContext gameContext, IRenderContext renderContext ) : void
gameContext IGameContext
renderContext IRenderContext
리턴 void

Update() 공개 메소드

public Update ( IGameContext gameContext, IUpdateContext updateContext ) : void
gameContext IGameContext
updateContext IUpdateContext
리턴 void

Wall() 공개 메소드

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