/// <summary> /// Кактус колет джанго /// </summary> public void Prick(KindOfCollision newKindOfCollision, Django django) { kindOfCollision = newKindOfCollision; isCollision = true; if (django != null) { pushUpSpeed = django.JumpSpeed; pushSpeed = 2 * django.MoveSpeed; startPositionPoint = new Point(django.PositionRectangle.Left, django.PositionRectangle.Top); django.HealthPoints -= 10; } }
public override int GetHashCode() { unchecked { var hashCode = Nome?.GetHashCode() ?? 0; hashCode = (hashCode * 397) ^ Email?.GetHashCode() ?? 0; hashCode = (hashCode * 397) ^ HTML.GetHashCode(); hashCode = (hashCode * 397) ^ CSS.GetHashCode(); hashCode = (hashCode * 397) ^ Javascript.GetHashCode(); hashCode = (hashCode * 397) ^ Python.GetHashCode(); hashCode = (hashCode * 397) ^ Django.GetHashCode(); hashCode = (hashCode * 397) ^ Ios.GetHashCode(); hashCode = (hashCode * 397) ^ Android.GetHashCode(); return(hashCode); } }
public static void CheckForNextLevel(Django django, int countOfEnemies) { //убил всех врагов и дошел до конца уровня if ((currentLevel < levelCount) && (django != null) && (countOfEnemies == 0) && (django.PositionRectangle.Right >= Length)) { currentLevel++; isNextLevel = true; } else if ((currentLevel == levelCount) && (django != null) && (countOfEnemies == 0) && (django.PositionRectangle.Right >= Length)) { ScreenManager.SetWinScreen(); } }
public static SavingObject SavingObject(Django django) { return (new SavingObject(django.HealthPoints, django.AllBullets, django.PositionRectangle, -1, -1, -1, django.FrameSizePoint, django.GetType())); }