GameEntities.Unit.DoIntellectCommand C# (CSharp) Method

DoIntellectCommand() public method

public DoIntellectCommand ( Intellect command ) : void
command Intellect
return void
        public void DoIntellectCommand( Intellect.Command command )
        {
            OnIntellectCommand( command );
        }

Usage Example

Exemplo n.º 1
0
        protected void ControlKeyPress(GameControlKeys controlKey, float strength)
        {
            if (strength <= 0.0f)
            {
                Log.Fatal("Intellect: ControlKeyPress: Invalid \"strength\".");
            }

            if (GetControlKeyStrength(controlKey) == strength)
            {
                return;
            }

            controlKeysStrength[(int)controlKey] = strength;

            if (controlledObject != null)
            {
                controlledObject.DoIntellectCommand(new Command(controlKey, true));
            }
        }