C# Class ProjectCow.Cow

Inheritance: LiftObject
Mostra file Open project: csce3513/Team12 Class Usage Examples

Public Methods

Method Description
Cow ( Vector2 position, float resistance, GameObjectsManager manager, Random random ) : System
Draw ( SpriteBatch spriteBatch ) : void
LoadContent ( Microsoft.Xna.Framework.Content.ContentManager content ) : void
Update ( GameTime gameTime ) : void

Private Methods

Method Description
Move ( ) : void
MoveRandomly ( GameTime gameTime ) : void

Method Details

Cow() public method

public Cow ( Vector2 position, float resistance, GameObjectsManager manager, Random random ) : System
position Vector2
resistance float
manager GameObjectsManager
random System.Random
return System

Draw() public method

public Draw ( SpriteBatch spriteBatch ) : void
spriteBatch Microsoft.Xna.Framework.Graphics.SpriteBatch
return void

LoadContent() public method

public LoadContent ( Microsoft.Xna.Framework.Content.ContentManager content ) : void
content Microsoft.Xna.Framework.Content.ContentManager
return void

Update() public method

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