C# Class RTSEngine.Data.Camera

Show file Open project: RegrowthStudios/VoxelRTS Class Usage Examples

Public Properties

Property Type Description
INITIAL_CAMERA_ORIGIN Vector3
INITIAL_HIGH_SETTINGS CameraMotionSettings
INITIAL_LOW_SETTINGS CameraMotionSettings
lowSettings CameraMotionSettings

Public Methods

Method Description
Camera ( Viewport v ) : System
GetSelectionBox ( Vector2 screenMin, Vector2 screenMax ) : BoundingFrustum
GetViewRay ( Vector2 screenPos ) : Microsoft.Xna.Framework.Ray
MoveTo ( float x, float z ) : void
RecalculateView ( CollisionGrid map, float dist ) : void
Update ( CollisionGrid map, float dt ) : void

Private Methods

Method Description
Orbit ( int x, int y, CameraMotionSettings cms, float dt ) : void
Scroll ( int x, int y, CameraMotionSettings cms, float dt ) : void
Zoom ( int z, float dt ) : void

Method Details

Camera() public method

public Camera ( Viewport v ) : System
v Microsoft.Xna.Framework.Graphics.Viewport
return System

GetSelectionBox() public method

public GetSelectionBox ( Vector2 screenMin, Vector2 screenMax ) : BoundingFrustum
screenMin Vector2
screenMax Vector2
return BoundingFrustum

GetViewRay() public method

public GetViewRay ( Vector2 screenPos ) : Microsoft.Xna.Framework.Ray
screenPos Vector2
return Microsoft.Xna.Framework.Ray

MoveTo() public method

public MoveTo ( float x, float z ) : void
x float
z float
return void

RecalculateView() public method

public RecalculateView ( CollisionGrid map, float dist ) : void
map CollisionGrid
dist float
return void

Update() public method

public Update ( CollisionGrid map, float dt ) : void
map CollisionGrid
dt float
return void

Property Details

INITIAL_CAMERA_ORIGIN public static property

public static Vector3 INITIAL_CAMERA_ORIGIN
return Vector3

INITIAL_HIGH_SETTINGS public static property

public static CameraMotionSettings,RTSEngine.Data INITIAL_HIGH_SETTINGS
return CameraMotionSettings

INITIAL_LOW_SETTINGS public static property

public static CameraMotionSettings,RTSEngine.Data INITIAL_LOW_SETTINGS
return CameraMotionSettings

lowSettings public property

public CameraMotionSettings,RTSEngine.Data lowSettings
return CameraMotionSettings