C# Class GrandLarceny.Rope

Inheritance: GrandLarceny.MovingObject
Mostra file Open project: melburn/GLhf Class Usage Examples

Protected Properties

Property Type Description
m_endPosition GrandLarceny.Position
m_lenght float
m_moveToStart bool
m_startPosition GrandLarceny.Position
m_swingSpeed float

Public Methods

Method Description
Rope ( Vector2 a_posV2, string a_sprite, float a_layer ) : System
draw ( GameTime a_gameTime ) : void
getEndpoint ( ) : GrandLarceny.Position
getImageBox ( ) : GrandLarceny.CollisionShape
getLength ( ) : float
loadContent ( ) : void
moveRope ( Vector2 a_position ) : void
resetPosition ( ) : void
setEndPoint ( GrandLarceny.Position a_position ) : void
setEndPoint ( GrandLarceny.Position a_position, Vector2 a_offset ) : void
setEndPoint ( Vector2 a_endPoint ) : void
setEndPoint ( Vector2 a_position, Vector2 a_offset ) : void
setLength ( float a_length ) : void
setStartPoint ( Vector2 a_startPoint ) : void
update ( GameTime a_gameTime ) : void

Private Methods

Method Description
updateCollisionWith ( Entity a_collid ) : void

Method Details

Rope() public method

public Rope ( Vector2 a_posV2, string a_sprite, float a_layer ) : System
a_posV2 Vector2
a_sprite string
a_layer float
return System

draw() public method

public draw ( GameTime a_gameTime ) : void
a_gameTime Microsoft.Xna.Framework.GameTime
return void

getEndpoint() public method

public getEndpoint ( ) : GrandLarceny.Position
return GrandLarceny.Position

getImageBox() public method

public getImageBox ( ) : GrandLarceny.CollisionShape
return GrandLarceny.CollisionShape

getLength() public method

public getLength ( ) : float
return float

loadContent() public method

public loadContent ( ) : void
return void

moveRope() public method

public moveRope ( Vector2 a_position ) : void
a_position Vector2
return void

resetPosition() public method

public resetPosition ( ) : void
return void

setEndPoint() public method

public setEndPoint ( GrandLarceny.Position a_position ) : void
a_position GrandLarceny.Position
return void

setEndPoint() public method

public setEndPoint ( GrandLarceny.Position a_position, Vector2 a_offset ) : void
a_position GrandLarceny.Position
a_offset Vector2
return void

setEndPoint() public method

public setEndPoint ( Vector2 a_endPoint ) : void
a_endPoint Vector2
return void

setEndPoint() public method

public setEndPoint ( Vector2 a_position, Vector2 a_offset ) : void
a_position Vector2
a_offset Vector2
return void

setLength() public method

public setLength ( float a_length ) : void
a_length float
return void

setStartPoint() public method

public setStartPoint ( Vector2 a_startPoint ) : void
a_startPoint Vector2
return void

update() public method

public update ( GameTime a_gameTime ) : void
a_gameTime Microsoft.Xna.Framework.GameTime
return void

Property Details

m_endPosition protected_oe property

protected Position,GrandLarceny m_endPosition
return GrandLarceny.Position

m_lenght protected_oe property

protected float m_lenght
return float

m_moveToStart protected_oe property

protected bool m_moveToStart
return bool

m_startPosition protected_oe property

protected Position,GrandLarceny m_startPosition
return GrandLarceny.Position

m_swingSpeed protected_oe property

protected float m_swingSpeed
return float