C# Class PrinceGame.Position

Mostra file Open project: salvadorc17/Prince-Monogame Class Usage Examples

Public Properties

Property Type Description
_screenRealSize Vector2
_spriteRealSize Vector2

Public Methods

Method Description
CheckCollision ( Position p ) : bool
CheckOnRow ( Position p ) : bool
CheckOnRowDistance ( Position p ) : float
CheckOnRowDistancePixel ( Position p ) : float
Position ( Vector2 screenRealSize, Vector2 spriteRealSize ) : System

Method Details

CheckCollision() public method

public CheckCollision ( Position p ) : bool
p Position
return bool

CheckOnRow() public method

public CheckOnRow ( Position p ) : bool
p Position
return bool

CheckOnRowDistance() public method

public CheckOnRowDistance ( Position p ) : float
p Position
return float

CheckOnRowDistancePixel() public method

public CheckOnRowDistancePixel ( Position p ) : float
p Position
return float

Position() public method

public Position ( Vector2 screenRealSize, Vector2 spriteRealSize ) : System
screenRealSize Vector2
spriteRealSize Vector2
return System

Property Details

_screenRealSize public_oe property

public Vector2 _screenRealSize
return Vector2

_spriteRealSize public_oe property

public Vector2 _spriteRealSize
return Vector2