C# Class Blink.Classes.SpearClass

Show file Open project: dah6ce/Blink Class Usage Examples

Public Properties

Property 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

Public Methods

Method 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

Method Description
correctHitBox ( ) : void
dropSpear ( ) : void
playerCollision ( ) : void
setOwner ( PlayerClass player ) : void
throwUpdate ( ) : void

Method Details

Draw() public method

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

SpearClass() public method

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
return System

Update() public method

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

meleeCheck() public method

public meleeCheck ( int frame ) : void
frame int
return void

reset() public method

public reset ( PlayerClass p, Map newMap ) : void
p PlayerClass
newMap Map
return void

setThrownBy() public method

public setThrownBy ( PlayerClass owner ) : void
owner PlayerClass
return void

Property Details

Hit_Player_Sound public property

public SoundEffectInstance,Microsoft.Xna.Framework.Audio Hit_Player_Sound
return Microsoft.Xna.Framework.Audio.SoundEffectInstance

Hit_Wall_Sound public property

public SoundEffectInstance,Microsoft.Xna.Framework.Audio Hit_Wall_Sound
return Microsoft.Xna.Framework.Audio.SoundEffectInstance

Stab_Sound public property

public SoundEffectInstance,Microsoft.Xna.Framework.Audio Stab_Sound
return Microsoft.Xna.Framework.Audio.SoundEffectInstance

THROW_BUTTON public property

public Buttons THROW_BUTTON
return Buttons

THROW_KEY public property

public Keys THROW_KEY
return Keys

Throw_Sound public property

public SoundEffectInstance,Microsoft.Xna.Framework.Audio Throw_Sound
return Microsoft.Xna.Framework.Audio.SoundEffectInstance

attachedToPlayer public property

public Boolean,System attachedToPlayer
return System.Boolean

gravityEffect public property

public float gravityEffect
return float

inUseTimer public property

public int inUseTimer
return int

isInUse public property

public Boolean,System isInUse
return System.Boolean

m public property

public Map,Blink.Classes m
return Map

spear public property

public Rectangle,Microsoft.Xna.Framework spear
return Microsoft.Xna.Framework.Rectangle

spearOrientation public property

public int spearOrientation
return int

spearOwner public property

public PlayerClass,Blink.Classes spearOwner
return PlayerClass

spearText public property

public Texture2D,Microsoft.Xna.Framework.Graphics spearText
return Microsoft.Xna.Framework.Graphics.Texture2D

throwDown public property

public Boolean,System throwDown
return System.Boolean

velocity public property

public Vector2 velocity
return Vector2