C# Class MyGame.WaterUnit

Inheritance: Unit
Show 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 property

public List Objects
return List

reflectionTarg public property

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

waterEffect public property

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