public float PercentageOccupation(Player virus, SystemElementControl control) { var controlElements = ElementsByControl[control]; int hackedSize = GetHackedElementsSize(virus, controlElements); int controlElementsSize = ControlElementSizes[control]; return((float)hackedSize / (float)controlElementsSize); }
public SystemElement(SystemElementControl control, SystemElementType type, int size, Modifiers modifiers) { Control = control; Type = type; Size = size; this.modifiers = modifiers; Name = control.Name + " " + type.Name; float modifier = (Type.Power + Control.Power) * Size; PowerModifier = Mathf.RoundToInt(modifier); }
public int HackedCount(Player virus, SystemElementControl control) { var controlElements = ElementsByControl[control]; return(HackedCount(virus, controlElements)); }
public float GetPercentageOccupation(SystemElementControl control) { return(systemElementList.PercentageOccupation(virus.Value, control)); }