C# Класс ScrollingShooter.RightClaw

A claw that extends towards the player from the right side of the screen
Наследование: ScrollingShooter.Enemy
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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

Описание методов

Attack() публичный Метод

public Attack ( int y ) : void
y int
Результат void

Draw() публичный Метод

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
Результат void

RightClaw() публичный Метод

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
Результат Microsoft.Xna.Framework

Update() публичный Метод

Updates the Claw
public Update ( float elapsedTime ) : void
elapsedTime float The in-game time between the previous and current frame
Результат void