C# Class MyGame.WaterUnit

Inheritance: Unit
Mostra file Open project: mahmoudbahaa/XNA-Game-project

Public Properties

Property Type Description
Objects List
reflectionTarg Microsoft.Xna.Framework.Graphics.RenderTarget2D
waterEffect Microsoft.Xna.Framework.Graphics.Effect

Public Methods

Method Description
WaterUnit ( MyGame game, Vector3 Position, Vector3 Rotation, Vector3 Scale ) : System
renderReflection ( GameTime gameTime ) : void
update ( GameTime gameTime ) : void

Allows the unit to update itself.

Method Details

WaterUnit() public method

public WaterUnit ( MyGame game, Vector3 Position, Vector3 Rotation, Vector3 Scale ) : System
game MyGame
Position Vector3
Rotation Vector3
Scale Vector3
return System

renderReflection() public method

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

update() public method

Allows the unit to update itself.
public update ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime Provides a snapshot of timing values.
return void

Property Details

Objects public_oe property

public List Objects
return List

reflectionTarg public_oe property

public RenderTarget2D,Microsoft.Xna.Framework.Graphics reflectionTarg
return Microsoft.Xna.Framework.Graphics.RenderTarget2D

waterEffect public_oe property

public Effect,Microsoft.Xna.Framework.Graphics waterEffect
return Microsoft.Xna.Framework.Graphics.Effect