C# Class LDEngine.EntityPools.EntityPool

Mostra file Open project: GarethIW/LDEngine Class Usage Examples

Public Properties

Property Type Description
BoxCollidesWith List
Entities List
Instance EntityPool
PolyCollidesWith List

Public Methods

Method Description
Draw ( SpriteBatch sb, Camera camera ) : void
EntityPool ( int maxEntities, Entity>.Func createFunc, Microsoft.Xna.Framework.Graphics.Texture2D spriteSheet ) : System
HandleInput ( InputState input ) : void
Spawn ( Action spawnFunc ) : Entity
Update ( GameTime gameTime ) : void
Update ( GameTime gameTime, Map gameMap ) : void

Private Methods

Method Description
CheckCollisions ( Entity e ) : void

Method Details

Draw() public method

public Draw ( SpriteBatch sb, Camera camera ) : void
sb Microsoft.Xna.Framework.Graphics.SpriteBatch
camera Camera
return void

EntityPool() public method

public EntityPool ( int maxEntities, Entity>.Func createFunc, Microsoft.Xna.Framework.Graphics.Texture2D spriteSheet ) : System
maxEntities int
createFunc Entity>.Func
spriteSheet Microsoft.Xna.Framework.Graphics.Texture2D
return System

HandleInput() public method

public HandleInput ( InputState input ) : void
input GameStateManagement.InputState
return void

Spawn() public method

public Spawn ( Action spawnFunc ) : Entity
spawnFunc Action
return Entity

Update() public method

public Update ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime
return void

Update() public method

public Update ( GameTime gameTime, Map gameMap ) : void
gameTime Microsoft.Xna.Framework.GameTime
gameMap Map
return void

Property Details

BoxCollidesWith public_oe property

public List BoxCollidesWith
return List

Entities public_oe property

public List Entities
return List

Instance public_oe static_oe property

public static EntityPool,LDEngine.EntityPools Instance
return EntityPool

PolyCollidesWith public_oe property

public List PolyCollidesWith
return List