C# 클래스 Blink.Classes.SpearClass

파일 보기 프로젝트 열기: dah6ce/Blink 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
Hit_Player_Sound Microsoft.Xna.Framework.Audio.SoundEffectInstance
Hit_Wall_Sound Microsoft.Xna.Framework.Audio.SoundEffectInstance
Stab_Sound Microsoft.Xna.Framework.Audio.SoundEffectInstance
THROW_BUTTON Buttons
THROW_KEY Keys
Throw_Sound Microsoft.Xna.Framework.Audio.SoundEffectInstance
attachedToPlayer System.Boolean
gravityEffect float
inUseTimer int
isInUse System.Boolean
m Map
spear Microsoft.Xna.Framework.Rectangle
spearOrientation int
spearOwner PlayerClass
spearText Microsoft.Xna.Framework.Graphics.Texture2D
throwDown System.Boolean
velocity Vector2

공개 메소드들

메소드 설명
Draw ( SpriteBatch sB ) : void
SpearClass ( PlayerClass spearOwner, Microsoft.Xna.Framework.Graphics.Texture2D spearText, Microsoft.Xna.Framework.Graphics.Texture2D indicatorText, Vector2 ScreenSize, Map m, PlayerClass players ) : System
Update ( KeyboardState input, GamePadState padState ) : void
meleeCheck ( int frame ) : void
reset ( PlayerClass p, Map newMap ) : void
setThrownBy ( PlayerClass owner ) : void

비공개 메소드들

메소드 설명
correctHitBox ( ) : void
dropSpear ( ) : void
playerCollision ( ) : void
setOwner ( PlayerClass player ) : void
throwUpdate ( ) : void

메소드 상세

Draw() 공개 메소드

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

SpearClass() 공개 메소드

public SpearClass ( PlayerClass spearOwner, Microsoft.Xna.Framework.Graphics.Texture2D spearText, Microsoft.Xna.Framework.Graphics.Texture2D indicatorText, Vector2 ScreenSize, Map m, PlayerClass players ) : System
spearOwner PlayerClass
spearText Microsoft.Xna.Framework.Graphics.Texture2D
indicatorText Microsoft.Xna.Framework.Graphics.Texture2D
ScreenSize Vector2
m Map
players PlayerClass
리턴 System

Update() 공개 메소드

public Update ( KeyboardState input, GamePadState padState ) : void
input Microsoft.Xna.Framework.Input.KeyboardState
padState Microsoft.Xna.Framework.Input.GamePadState
리턴 void

meleeCheck() 공개 메소드

public meleeCheck ( int frame ) : void
frame int
리턴 void

reset() 공개 메소드

public reset ( PlayerClass p, Map newMap ) : void
p PlayerClass
newMap Map
리턴 void

setThrownBy() 공개 메소드

public setThrownBy ( PlayerClass owner ) : void
owner PlayerClass
리턴 void

프로퍼티 상세

Hit_Player_Sound 공개적으로 프로퍼티

public SoundEffectInstance,Microsoft.Xna.Framework.Audio Hit_Player_Sound
리턴 Microsoft.Xna.Framework.Audio.SoundEffectInstance

Hit_Wall_Sound 공개적으로 프로퍼티

public SoundEffectInstance,Microsoft.Xna.Framework.Audio Hit_Wall_Sound
리턴 Microsoft.Xna.Framework.Audio.SoundEffectInstance

Stab_Sound 공개적으로 프로퍼티

public SoundEffectInstance,Microsoft.Xna.Framework.Audio Stab_Sound
리턴 Microsoft.Xna.Framework.Audio.SoundEffectInstance

THROW_BUTTON 공개적으로 프로퍼티

public Buttons THROW_BUTTON
리턴 Buttons

THROW_KEY 공개적으로 프로퍼티

public Keys THROW_KEY
리턴 Keys

Throw_Sound 공개적으로 프로퍼티

public SoundEffectInstance,Microsoft.Xna.Framework.Audio Throw_Sound
리턴 Microsoft.Xna.Framework.Audio.SoundEffectInstance

attachedToPlayer 공개적으로 프로퍼티

public Boolean,System attachedToPlayer
리턴 System.Boolean

gravityEffect 공개적으로 프로퍼티

public float gravityEffect
리턴 float

inUseTimer 공개적으로 프로퍼티

public int inUseTimer
리턴 int

isInUse 공개적으로 프로퍼티

public Boolean,System isInUse
리턴 System.Boolean

m 공개적으로 프로퍼티

public Map,Blink.Classes m
리턴 Map

spear 공개적으로 프로퍼티

public Rectangle,Microsoft.Xna.Framework spear
리턴 Microsoft.Xna.Framework.Rectangle

spearOrientation 공개적으로 프로퍼티

public int spearOrientation
리턴 int

spearOwner 공개적으로 프로퍼티

public PlayerClass,Blink.Classes spearOwner
리턴 PlayerClass

spearText 공개적으로 프로퍼티

public Texture2D,Microsoft.Xna.Framework.Graphics spearText
리턴 Microsoft.Xna.Framework.Graphics.Texture2D

throwDown 공개적으로 프로퍼티

public Boolean,System throwDown
리턴 System.Boolean

velocity 공개적으로 프로퍼티

public Vector2 velocity
리턴 Vector2