Example #1
0
        public override DHJassValue Subtract(DHJassValue value)
        {
            DHJassInt returnValue = new DHJassInt();

            returnValue.value = this.value - value.IntValue;

            return returnValue;
        }
Example #2
0
        public override DHJassValue Add(DHJassValue value)
        {
            DHJassInt returnValue = new DHJassInt();

            returnValue.Value = this.value + value.IntValue;

            return returnValue;
        }
Example #3
0
        public override DHJassValue Multiply(DHJassValue value)
        {
            DHJassInt returnValue = new DHJassInt();

            if (value is DHJassReal)
                returnValue.value = (int)(this.value * value.RealValue);
            else
                returnValue.value = this.value * value.IntValue;

            return returnValue;
        }