C# 클래스 ScrollingShooter.RightClaw

A claw that extends towards the player from the right side of the screen
상속: ScrollingShooter.Enemy
파일 보기 프로젝트 열기: zombiepaladin/scrolling-shooter 1 사용 예제들

공개 메소드들

메소드 설명
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