C# Class ScrollingShooter.RightClaw

A claw that extends towards the player from the right side of the screen
Inheritance: ScrollingShooter.Enemy
Exibir arquivo Open project: zombiepaladin/scrolling-shooter Class Usage Examples

Public Methods

Method Description
Attack ( int y ) : void
Draw ( float elapsedTime, SpriteBatch spriteBatch ) : void

Draw the Claw on-screen

RightClaw ( uint id, Microsoft.Xna.Framework.Content.ContentManager content, Vector2 position ) : Microsoft.Xna.Framework

Creates a new instance of the Right Claw

Update ( float elapsedTime ) : void

Updates the Claw

Method Details

Attack() public method

public Attack ( int y ) : void
y int
return void

Draw() public method

Draw the Claw on-screen
public Draw ( float elapsedTime, SpriteBatch spriteBatch ) : void
elapsedTime float The in-game time between the previous and current frame
spriteBatch Microsoft.Xna.Framework.Graphics.SpriteBatch An already initialized SpriteBatch, ready for Draw() commands
return void

RightClaw() public method

Creates a new instance of the Right Claw
public RightClaw ( uint id, Microsoft.Xna.Framework.Content.ContentManager content, Vector2 position ) : Microsoft.Xna.Framework
id uint
content Microsoft.Xna.Framework.Content.ContentManager A ContentManager to load resources with
position Microsoft.Xna.Framework.Vector2 The position of the claw in the game world
return Microsoft.Xna.Framework

Update() public method

Updates the Claw
public Update ( float elapsedTime ) : void
elapsedTime float The in-game time between the previous and current frame
return void