public static MonsterStatistics Subtract(MonsterStatistics a, MonsterStatistics b) { MonsterStatistics result = new MonsterStatistics(); result.Health = a.Health - b.Health; result.Speed = a.Speed - b.Speed; return(result); }
public static MonsterStatistics Multiply(MonsterStatistics a, float b) { MonsterStatistics result = new MonsterStatistics(); result.Health = (int)(a.Health * b); result.Speed = a.Speed * b; return(result); }
public static MonsterStatistics Add(MonsterStatistics a, MonsterStatistics b) { MonsterStatistics result = new MonsterStatistics(); result.Health = a.Health + b.Health; result.Speed = a.Speed + b.Speed; return(result); }