C# Class UHSampleGame.CoreObjects.StaticModel

Exibir arquivo Open project: holtkampw/UH-Sample-XNA-Project Class Usage Examples

Public Properties

Property Type Description
Position Vector3
currentGlowScale float
elapsedGlowTime int
endGlowScale float
glow bool
maxGlowTime int
startGlowScale float

Protected Properties

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

Public Methods

Method Description
Draw ( GameTime gameTime ) : void
RotateX ( float rotation ) : void
RotateY ( float rotation ) : void
RotateZ ( float rotation ) : void
SetupModel ( Model model ) : void

Adds a model to the Static Model and performs setup

SetupModel ( Model newModel, Vector3 position ) : void

Adds a model to the Static Model and performs setup

StaticModel ( ) : System

Default Constructor to setup Model

StaticModel ( Model model ) : System

Constructor consisting of a given model

StaticModel ( Model newModel, Vector3 position ) : System

Constructor consisting of a given model

StaticModel ( Vector3 position ) : System

Default Constructor to setup Model

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

Protected Methods

Method Description
SetupCamera ( ) : void

Sets up default camera information

SetupModel ( ) : void
SetupModel ( Vector3 position ) : void

Method Details

Draw() public method

public Draw ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime
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() protected method

protected SetupModel ( ) : void
return void

SetupModel() public method

Adds a model to the Static Model and performs setup
public SetupModel ( Model model ) : void
model Microsoft.Xna.Framework.Graphics.Model Model for this instance
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

StaticModel() public method

Default Constructor to setup Model
public StaticModel ( ) : System
return System

StaticModel() public method

Constructor consisting of a given model
public StaticModel ( Model model ) : System
model Microsoft.Xna.Framework.Graphics.Model Model for use
return System

StaticModel() public method

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

StaticModel() public method

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

Update() public method

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

UpdateTransforms() public method

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

UpdateView() public method

public UpdateView ( ) : void
return void

Property Details

Position public_oe property

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

currentGlowScale public_oe property

public float currentGlowScale
return float

elapsedGlowTime public_oe property

public int elapsedGlowTime
return int

endGlowScale public_oe property

public float endGlowScale
return float

game protected_oe property

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

glow public_oe property

public bool glow
return bool

maxGlowTime public_oe property

public int maxGlowTime
return int

scale protected_oe property

protected float scale
return float

startGlowScale public_oe property

public float startGlowScale
return float