C# 클래스 ProjectCow.Tank

Enemy that shoots missles at you
상속: LiftObject
파일 보기 프로젝트 열기: csce3513/Team12 1 사용 예제들

Private Properties

프로퍼티 타입 설명
RandomlyShoot void

공개 메소드들

메소드 설명
Draw ( SpriteBatch spriteBatch ) : void
Lift ( Vector2 spaceshipCenter, float pullAcceleration, Vector2 beamPosition, int beamWidth ) : void
LoadContent ( Microsoft.Xna.Framework.Content.ContentManager content ) : void
Move ( ) : void
RotateGun ( Vector2 spaceshipPosition, int width, int height ) : void
Tank ( Vector2 position, GameObjectsManager manager, Random random ) : System
Update ( GameTime gameTime ) : void

비공개 메소드들

메소드 설명
RandomlyShoot ( System.TimeSpan elapsedTime ) : void

메소드 상세

Draw() 공개 메소드

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

Lift() 공개 메소드

public Lift ( Vector2 spaceshipCenter, float pullAcceleration, Vector2 beamPosition, int beamWidth ) : void
spaceshipCenter Vector2
pullAcceleration float
beamPosition Vector2
beamWidth int
리턴 void

LoadContent() 공개 메소드

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

Move() 공개 메소드

public Move ( ) : void
리턴 void

RotateGun() 공개 메소드

public RotateGun ( Vector2 spaceshipPosition, int width, int height ) : void
spaceshipPosition Vector2
width int
height int
리턴 void

Tank() 공개 메소드

public Tank ( Vector2 position, GameObjectsManager manager, Random random ) : System
position Vector2
manager GameObjectsManager
random System.Random
리턴 System

Update() 공개 메소드

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