DC/RTS Documentation  v1.62
A Unity3D System Incorporating the Functionality of a Dungeon Crawler or Real Time Strategy System
 All Classes Files Functions Variables Enumerations Enumerator Properties Pages
CamMovementBehavior Class Reference

This Class is for Handling Movement and Key Inputs for the Camera's Behavior More...

Inheritance diagram for CamMovementBehavior:

Public Member Functions

bool isMouseMovement ()
 Is there Mouse Scrolling Movement? More...
 
bool isFollowToggle ()
 Is the camera following a Control Object? More...
 

Public Attributes

KeyCode FollowToggleKey = KeyCode.Space
 The Key that will Initiate Camera Following when Selecting a ControlObjHandler. More...
 
LayerMask IgnoreMask
 The LayerMask to Exclude when Casting Rays. More...
 
bool SteeperAngle = true
 Toggles between a Steeper Angle - Either 35.264 Degrees or 45 Degrees More...
 
bool EnableMouseScroll = false
 Is Mouse Scrolling Enabled? More...
 
ControllerType ControllerToggleType = ControllerType.RealTimeStratToggle
 Is this a Real Time Strategy System or a Dungeon Crawler System? More...
 
float ScreenMovementBuffer = 5
 The Amount of Pixels before being able to Move with the Mouse. More...
 
float MinZoomDistance = 20
 The Minimum Zoomed In Distance. More...
 
float MaxZoomDistance = 400
 The Maximum Zoomed Out Distance. More...
 
float MoveToSpeed = 3
 The Speed at which the Camera Moves when using the W, A, S, and D Keys. More...
 
float ZoomSpeed = 3
 The Zooming In and Out Speed. More...
 
float RotateSpeed = 3
 The Camera Rotation Speed when using the Q and E Keys. More...
 

Detailed Description

This Class is for Handling Movement and Key Inputs for the Camera's Behavior

Member Function Documentation

bool CamMovementBehavior.isFollowToggle ( )

Is the camera following a Control Object?

bool CamMovementBehavior.isMouseMovement ( )

Is there Mouse Scrolling Movement?

Member Data Documentation

ControllerType CamMovementBehavior.ControllerToggleType = ControllerType.RealTimeStratToggle

Is this a Real Time Strategy System or a Dungeon Crawler System?

The Difference Between this and the Dungeon Crawler System is the Movement Behavior and the Amount of Control Objects that can be Controlled at One Time. More will change with time.

bool CamMovementBehavior.EnableMouseScroll = false

Is Mouse Scrolling Enabled?

RealTimeStratToggle must also be enabled

KeyCode CamMovementBehavior.FollowToggleKey = KeyCode.Space

The Key that will Initiate Camera Following when Selecting a ControlObjHandler.

LayerMask CamMovementBehavior.IgnoreMask

The LayerMask to Exclude when Casting Rays.

float CamMovementBehavior.MaxZoomDistance = 400

The Maximum Zoomed Out Distance.

float CamMovementBehavior.MinZoomDistance = 20

The Minimum Zoomed In Distance.

float CamMovementBehavior.MoveToSpeed = 3

The Speed at which the Camera Moves when using the W, A, S, and D Keys.

float CamMovementBehavior.RotateSpeed = 3

The Camera Rotation Speed when using the Q and E Keys.

float CamMovementBehavior.ScreenMovementBuffer = 5

The Amount of Pixels before being able to Move with the Mouse.

bool CamMovementBehavior.SteeperAngle = true

Toggles between a Steeper Angle - Either 35.264 Degrees or 45 Degrees

float CamMovementBehavior.ZoomSpeed = 3

The Zooming In and Out Speed.


The documentation for this class was generated from the following file: