C# Class MrGravity.Game_Objects.Static_Objects.Triggers.ForceTrigger

Inheritance: Trigger
Exibir arquivo Open project: DizWARE/Mr-Gravity Class Usage Examples

Public Methods

Method Description
ForceTrigger ( Microsoft.Xna.Framework.Content.ContentManager content, EntityInfo entity ) : System.Collections.Generic
RunTrigger ( List objects, Player player ) : void

This triggers adds a force in the x direction while the player is within its bounds and removes it when the player exits

Method Details

ForceTrigger() public method

public ForceTrigger ( Microsoft.Xna.Framework.Content.ContentManager content, EntityInfo entity ) : System.Collections.Generic
content Microsoft.Xna.Framework.Content.ContentManager
entity MrGravity.Import_Code.EntityInfo
return System.Collections.Generic

RunTrigger() public method

This triggers adds a force in the x direction while the player is within its bounds and removes it when the player exits
public RunTrigger ( List objects, Player player ) : void
objects List List of objects in the game
player MrGravity.Game_Objects.Physics_Objects.Player Player in the game
return void