public void skeinDispersed() { inSkein = false; inFormation = false; this.Skein = null; mColor = Color.White; mTarget = mGoal; }
void leaveSkein() { this.Skein.remove(this); this.Skein = null; mInSkein = false; mInFormation = false; mColor = Color.White; mTarget = mGoal; }
public FormationManager(Texture2D texture, Vector2 screenDimensions) { mCurrentSkein = null; mFormationPodTexture = texture; mFormationPods = new FormationPod[11]; mFreeIndices = new List <int>(); mExitingPods = new List <FormationPod>(); mScreenDimensions = screenDimensions; rnd = new Random(); mLeaderPosition = new Vector2((screenDimensions.X * 0.125f) + (screenDimensions.X * 0.75f), 25); /*//TESTING PURPOSES ONLY----------------- * mFormationPods[nextIndex] = new FormationPod(mFormationPodTexture, mScreenDimensions, mLeaderPosition, nextIndex); * nextIndex++; * count++; * mFormationPods[nextIndex] = new FormationPod(mFormationPodTexture, new Vector2(800,20), mLeaderPosition, nextIndex); * nextIndex++; * count++; * mFormationPods[nextIndex] = new FormationPod(mFormationPodTexture, new Vector2(800, 200), mLeaderPosition, nextIndex); * nextIndex++; * count++; * //--------------------------------------*/ }