public Formation GetLineFormation() { Formation form = new Formation("Line"); // Add Captain Position, always 0,0 form.AddFormationPosition(new Vector2(0, 0)); form.AddFormationPosition(new Vector2(0, 1)); form.AddFormationPosition(new Vector2(-1, 1)); form.AddFormationPosition(new Vector2(-2, 1)); form.AddFormationPosition(new Vector2(1, 1)); return form; }
public Formation GetFightingVFormation() { Formation form = new Formation("Fighting V"); // Add Captain Position, always 0,0 form.AddFormationPosition(new Vector2(0, 0)); form.AddFormationPosition(new Vector2(0, -1)); form.AddFormationPosition(new Vector2(-1, -1)); form.AddFormationPosition(new Vector2(-1, -2)); form.AddFormationPosition(new Vector2(1, -2)); return form; }
public Formation GetDiamondFormation() { Formation form = new Formation("Diamond"); // Add Captain Position, always 0,0 form.AddFormationPosition(new Vector2(0, 0)); form.AddFormationPosition(new Vector2(-1, 0)); form.AddFormationPosition(new Vector2(1, 0)); form.AddFormationPosition(new Vector2(0, -2)); form.AddFormationPosition(new Vector2(0, 2)); return form; }
public Formation GetBoxFormation() { Formation form = new Formation("Box"); // Add Captain Position, always 0,0 form.AddFormationPosition(new Vector2(0,0)); form.AddFormationPosition(new Vector2(-1, -1)); form.AddFormationPosition(new Vector2(0, 1)); form.AddFormationPosition(new Vector2(0, -1)); form.AddFormationPosition(new Vector2(-1, 1)); return form; }
public Formation GetShieldFormation() { Formation form = new Formation("Shield"); // Add Captain Position, always 0,0 form.AddFormationPosition(new Vector2(0, 0)); form.AddFormationPosition(new Vector2(0, 1)); form.AddFormationPosition(new Vector2(-1, 0)); form.AddFormationPosition(new Vector2(1, 0)); form.AddFormationPosition(new Vector2(-1, 1)); return(form); }
public Formation GetFightingVFormation() { Formation form = new Formation("Fighting V"); // Add Captain Position, always 0,0 form.AddFormationPosition(new Vector2(0, 0)); form.AddFormationPosition(new Vector2(0, -1)); form.AddFormationPosition(new Vector2(-1, -1)); form.AddFormationPosition(new Vector2(-1, -2)); form.AddFormationPosition(new Vector2(1, -2)); return(form); }
public Formation GetDiamondFormation() { Formation form = new Formation("Diamond"); // Add Captain Position, always 0,0 form.AddFormationPosition(new Vector2(0, 0)); form.AddFormationPosition(new Vector2(-1, 0)); form.AddFormationPosition(new Vector2(1, 0)); form.AddFormationPosition(new Vector2(0, -2)); form.AddFormationPosition(new Vector2(0, 2)); return(form); }
public Formation GetBoxFormation() { Formation form = new Formation("Box"); // Add Captain Position, always 0,0 form.AddFormationPosition(new Vector2(0, 0)); form.AddFormationPosition(new Vector2(-1, -1)); form.AddFormationPosition(new Vector2(0, 1)); form.AddFormationPosition(new Vector2(0, -1)); form.AddFormationPosition(new Vector2(-1, 1)); return(form); }
public override void SetFormation(Formation form) { m_fCurrFormation = form; }
public void SetCurrentFormation(Formation curr) { m_fCurrFormation = curr; }
public abstract void SetFormation(Formation form);
public override void SetFormation(Formation form) { m_fCurrFormation = form; Vector2 leaderIndex = Map.MapHandler.GetInstance().GetTileIndex(m_geSquadLeader.GetWorldPosition()); for (int i = 0; i < m_fCurrFormation.GetFormationSize()-1 && i < m_lstSquad.Count; i++) { FormationPosition formation = m_fCurrFormation.GetFormationPosition(i + 1); Vector2 minionPos = Vector2.Add(leaderIndex, formation.GetPositionIndex()); //m_lstSquad[i].MoveTo(minionPos); m_lstSquad[i].SetPosition(Map.MapHandler.GetInstance().GetTilePosition(minionPos)); } }