C# Class Blink.Classes.SpearClass

Afficher le fichier Open project: dah6ce/Blink Class Usage Examples

Méthodes publiques

Свойство Type Description
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

Méthodes publiques

Méthode Description
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

Private Methods

Méthode Description
correctHitBox ( ) : void
dropSpear ( ) : void
playerCollision ( ) : void
setOwner ( PlayerClass player ) : void
throwUpdate ( ) : void

Method Details

Draw() public méthode

public Draw ( SpriteBatch sB ) : void
sB Microsoft.Xna.Framework.Graphics.SpriteBatch
Résultat void

SpearClass() public méthode

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
Résultat System

Update() public méthode

public Update ( KeyboardState input, GamePadState padState ) : void
input Microsoft.Xna.Framework.Input.KeyboardState
padState Microsoft.Xna.Framework.Input.GamePadState
Résultat void

meleeCheck() public méthode

public meleeCheck ( int frame ) : void
frame int
Résultat void

reset() public méthode

public reset ( PlayerClass p, Map newMap ) : void
p PlayerClass
newMap Map
Résultat void

setThrownBy() public méthode

public setThrownBy ( PlayerClass owner ) : void
owner PlayerClass
Résultat void

Property Details

Hit_Player_Sound public_oe property

public SoundEffectInstance,Microsoft.Xna.Framework.Audio Hit_Player_Sound
Résultat Microsoft.Xna.Framework.Audio.SoundEffectInstance

Hit_Wall_Sound public_oe property

public SoundEffectInstance,Microsoft.Xna.Framework.Audio Hit_Wall_Sound
Résultat Microsoft.Xna.Framework.Audio.SoundEffectInstance

Stab_Sound public_oe property

public SoundEffectInstance,Microsoft.Xna.Framework.Audio Stab_Sound
Résultat Microsoft.Xna.Framework.Audio.SoundEffectInstance

THROW_BUTTON public_oe property

public Buttons THROW_BUTTON
Résultat Buttons

THROW_KEY public_oe property

public Keys THROW_KEY
Résultat Keys

Throw_Sound public_oe property

public SoundEffectInstance,Microsoft.Xna.Framework.Audio Throw_Sound
Résultat Microsoft.Xna.Framework.Audio.SoundEffectInstance

attachedToPlayer public_oe property

public Boolean,System attachedToPlayer
Résultat System.Boolean

gravityEffect public_oe property

public float gravityEffect
Résultat float

inUseTimer public_oe property

public int inUseTimer
Résultat int

isInUse public_oe property

public Boolean,System isInUse
Résultat System.Boolean

m public_oe property

public Map,Blink.Classes m
Résultat Map

spear public_oe property

public Rectangle,Microsoft.Xna.Framework spear
Résultat Microsoft.Xna.Framework.Rectangle

spearOrientation public_oe property

public int spearOrientation
Résultat int

spearOwner public_oe property

public PlayerClass,Blink.Classes spearOwner
Résultat PlayerClass

spearText public_oe property

public Texture2D,Microsoft.Xna.Framework.Graphics spearText
Résultat Microsoft.Xna.Framework.Graphics.Texture2D

throwDown public_oe property

public Boolean,System throwDown
Résultat System.Boolean

velocity public_oe property

public Vector2 velocity
Résultat Vector2