C# Class Blink.Classes.SpearClass

Mostra 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_oe property

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

Hit_Wall_Sound public_oe property

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

Stab_Sound public_oe property

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

THROW_BUTTON public_oe property

public Buttons THROW_BUTTON
return Buttons

THROW_KEY public_oe property

public Keys THROW_KEY
return Keys

Throw_Sound public_oe property

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

attachedToPlayer public_oe property

public Boolean,System attachedToPlayer
return System.Boolean

gravityEffect public_oe property

public float gravityEffect
return float

inUseTimer public_oe property

public int inUseTimer
return int

isInUse public_oe property

public Boolean,System isInUse
return System.Boolean

m public_oe property

public Map,Blink.Classes m
return Map

spear public_oe property

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

spearOrientation public_oe property

public int spearOrientation
return int

spearOwner public_oe property

public PlayerClass,Blink.Classes spearOwner
return PlayerClass

spearText public_oe property

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

throwDown public_oe property

public Boolean,System throwDown
return System.Boolean

velocity public_oe property

public Vector2 velocity
return Vector2