C# Class UHSampleGame.CoreObjects.Avatar

Show file Open project: holtkampw/UH-Sample-XNA-Project Class Usage Examples

Public Properties

Property Type Description
Position Vector3
Velocity Vector3

Protected Properties

Property Type Description
game Microsoft.Xna.Framework.Game
scale float

Public Methods

Method Description
Avatar ( Model newModel, Vector3 position ) : System

Constructor consisting of a given model

Avatar ( Vector3 position ) : System

Default Constructor to setup Model

Draw ( GameTime gameTime ) : void
HandleInput ( PlayerIndex index ) : bool
ResetRoll ( ) : void
ResetYaw ( ) : void
ResetYawPitchRoll ( ) : void
RotateToFace ( Vector3 O, Vector3 P, Vector3 U ) : void
RotateX ( float rotation ) : void
RotateY ( float rotation ) : void
RotateZ ( float rotation ) : void
SetupModel ( Model newModel, Vector3 position ) : void

Adds a model to the Static Model and performs setup

Update ( GameTime gameTime ) : void
UpdateTransforms ( ) : void
UpdateView ( ) : void

Protected Methods

Method Description
SetupCamera ( ) : void

Sets up default camera information

SetupModel ( Vector3 position ) : void

Method Details

Avatar() public method

Constructor consisting of a given model
public Avatar ( Model newModel, Vector3 position ) : System
newModel Microsoft.Xna.Framework.Graphics.Model
position Vector3
return System

Avatar() public method

Default Constructor to setup Model
public Avatar ( Vector3 position ) : System
position Vector3
return System

Draw() public method

public Draw ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime
return void

HandleInput() public method

public HandleInput ( PlayerIndex index ) : bool
index PlayerIndex
return bool

ResetRoll() public method

public ResetRoll ( ) : void
return void

ResetYaw() public method

public ResetYaw ( ) : void
return void

ResetYawPitchRoll() public method

public ResetYawPitchRoll ( ) : void
return void

RotateToFace() public method

public RotateToFace ( Vector3 O, Vector3 P, Vector3 U ) : void
O Vector3
P Vector3
U Vector3
return void

RotateX() public method

public RotateX ( float rotation ) : void
rotation float
return void

RotateY() public method

public RotateY ( float rotation ) : void
rotation float
return void

RotateZ() public method

public RotateZ ( float rotation ) : void
rotation float
return void

SetupCamera() protected method

Sets up default camera information
protected SetupCamera ( ) : void
return void

SetupModel() public method

Adds a model to the Static Model and performs setup
public SetupModel ( Model newModel, Vector3 position ) : void
newModel Microsoft.Xna.Framework.Graphics.Model
position Vector3
return void

SetupModel() protected method

protected SetupModel ( Vector3 position ) : void
position Vector3
return void

Update() public method

public Update ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime
return void

UpdateTransforms() public method

public UpdateTransforms ( ) : void
return void

UpdateView() public method

public UpdateView ( ) : void
return void

Property Details

Position public property

The position of the object in 3D space
public Vector3 Position
return Vector3

Velocity public property

public Vector3 Velocity
return Vector3

game protected property

The Game the object is in
protected Game,Microsoft.Xna.Framework game
return Microsoft.Xna.Framework.Game

scale protected property

protected float scale
return float