C# Class EzGame.Perspective.Planar.Raycaster

Mostrar archivo Open project: CodeTreeCommunity/Shooter2D

Public Properties

Property Type Description
Rays Ray[]

Public Methods

Method Description
Cast ( Vector2 Position, float Length ) : void
Cast ( Vector2 Position, float Length, float Field, float Angle ) : void
DrawAreaOutline ( Batch Batch, Color Color, float Size = 1 ) : void
DrawAreaOutline ( Color Color, float Size = 1 ) : void
DrawLines ( Batch Batch, Color Color = null, float Size = 1, SpriteEffects Effect = SpriteEffects.None, float Layer ) : void
DrawLines ( Color Color = null, float Size = 1, SpriteEffects Effect = SpriteEffects.None, float Layer ) : void
Intersects ( Polygon Polygon ) : bool
Intersects ( Polygon Polygon, Vector2 &Intersection ) : bool
Raycaster ( uint Rays ) : System

Method Details

Cast() public method

public Cast ( Vector2 Position, float Length ) : void
Position Vector2
Length float
return void

Cast() public method

public Cast ( Vector2 Position, float Length, float Field, float Angle ) : void
Position Vector2
Length float
Field float
Angle float
return void

DrawAreaOutline() public method

public DrawAreaOutline ( Batch Batch, Color Color, float Size = 1 ) : void
Batch Batch
Color Color
Size float
return void

DrawAreaOutline() public method

public DrawAreaOutline ( Color Color, float Size = 1 ) : void
Color Color
Size float
return void

DrawLines() public method

public DrawLines ( Batch Batch, Color Color = null, float Size = 1, SpriteEffects Effect = SpriteEffects.None, float Layer ) : void
Batch Batch
Color Color
Size float
Effect SpriteEffects
Layer float
return void

DrawLines() public method

public DrawLines ( Color Color = null, float Size = 1, SpriteEffects Effect = SpriteEffects.None, float Layer ) : void
Color Color
Size float
Effect SpriteEffects
Layer float
return void

Intersects() public method

public Intersects ( Polygon Polygon ) : bool
Polygon EzGame.Collision.Polygon
return bool

Intersects() public method

public Intersects ( Polygon Polygon, Vector2 &Intersection ) : bool
Polygon EzGame.Collision.Polygon
Intersection Vector2
return bool

Raycaster() public method

public Raycaster ( uint Rays ) : System
Rays uint
return System

Property Details

Rays public_oe property

public Ray[] Rays
return Ray[]