C# 클래스 MyGame.BulletUnit

This class represent bullet unit which represent the logic of the bullet that is it move with constant speed in a certain direction
상속: Unit
파일 보기 프로젝트 열기: mahmoudbahaa/XNA-Game-project

Private Properties

프로퍼티 타입 설명

공개 메소드들

메소드 설명
BulletUnit ( MyGame game, Vector3 Position, Vector3 Rotation, Vector3 Scale, Vector3 Direction ) : System
update ( GameTime gameTime ) : void

Allows the unit to update itself.

메소드 상세

BulletUnit() 공개 메소드

public BulletUnit ( MyGame game, Vector3 Position, Vector3 Rotation, Vector3 Scale, Vector3 Direction ) : System
game MyGame
Position Vector3
Rotation Vector3
Scale Vector3
Direction Vector3
리턴 System

update() 공개 메소드

Allows the unit to update itself.
public update ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime Provides a snapshot of timing values.
리턴 void