Here are the examples of the csharp api class AcademyRPG.Engine.HandleGatherCommand(IControllable) taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.
1 Example
0
1. Example
Project: Telerik-Academy
Source File: Engine.cs
Source File: Engine.cs
public virtual void ExecuteControllableCommand(string[] commandWords) { string controllableName = commandWords[0]; IControllable current = null; for (int i = 0; i < this.controllables.Count; i++) { if (controllableName == this.controllables[i].Name) { current = this.controllables[i]; } } if (current != null) { switch (commandWords[1]) { case "go": { this.HandleGoCommand(commandWords, current); break; } case "attack": { this.HandleAttackCommand(current); break; } case "gather": { this.HandleGatherCommand(current); break; } } } }