C# 클래스 Bug.GameObjects.Fighter

상속: Dynamic
파일 보기 프로젝트 열기: Projectfights/Fight-insect 1 사용 예제들

Private Properties

프로퍼티 타입 설명
GetPunch GameObject
HandleInputs void
getOverlayPos Vector2

공개 메소드들

메소드 설명
Draw ( SpriteBatch spriteBatch ) : void
Fighter ( Vector2 pos, Microsoft.Xna.Framework.Graphics.Texture2D overlay_, AnimatedTexture2D idleAnim_, AnimatedTexture2D punchAnim_, AnimatedTexture2D recoilAnim_, FighterInput input_, HitBox punch_, bool flip_, float speed_, double health_, double power_ ) : Bug.Display
GetBoundingBox ( ) : Rectangle
OnCollision ( GameObject other, Direction dir ) : void
Update ( GameTime gameTime ) : void

비공개 메소드들

메소드 설명
GetPunch ( ) : GameObject
HandleInputs ( ) : void
getOverlayPos ( ) : Vector2

메소드 상세

Draw() 공개 메소드

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

Fighter() 공개 메소드

public Fighter ( Vector2 pos, Microsoft.Xna.Framework.Graphics.Texture2D overlay_, AnimatedTexture2D idleAnim_, AnimatedTexture2D punchAnim_, AnimatedTexture2D recoilAnim_, FighterInput input_, HitBox punch_, bool flip_, float speed_, double health_, double power_ ) : Bug.Display
pos Vector2
overlay_ Microsoft.Xna.Framework.Graphics.Texture2D
idleAnim_ Bug.Utils.AnimatedTexture2D
punchAnim_ Bug.Utils.AnimatedTexture2D
recoilAnim_ Bug.Utils.AnimatedTexture2D
input_ FighterInput
punch_ HitBox
flip_ bool
speed_ float
health_ double
power_ double
리턴 Bug.Display

GetBoundingBox() 공개 메소드

public GetBoundingBox ( ) : Rectangle
리턴 Microsoft.Xna.Framework.Rectangle

OnCollision() 공개 메소드

public OnCollision ( GameObject other, Direction dir ) : void
other GameObject
dir Direction
리턴 void

Update() 공개 메소드

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