public void Initialize() { Members.Clear(); for (int i = 0; i < 7; i++) { TeamMember m = new TeamMember(this); m.State = PlayerState.Normal; m.Number = i; if (i < 3) { m.Profession = Position.Bricky; } else if (i == 3) { m.Profession = Position.Decimator; } else { m.Profession = Position.Ballista; } Members.Add(m); } }
public virtual void Enforce(Team T, TeamMember TM) { if (T == null || TM == null) { return; } switch (assignedJudgement.Judged) { case Judgement.JudgementType.Team: assignedJudgement.Execute(T); break; case Judgement.JudgementType.TeamMember: assignedJudgement.Execute(TM); break; case Judgement.JudgementType.Global: assignedJudgement.Execute(manager); break; } }
public void Pass(TeamMember TM) { Pass(TM.position); }
public void Hit(TeamMember victim) { victim.Stun(2000); if (victim.HasBall) victim.Drop(); }
public override void Execute(TeamMember TM) { throw new NotImplementedException(); }
public override void Execute(TeamMember TM) { TM.CantCatch = true; TM.Ignite(); if(TM.HasBall) TM.Drop(); }
public abstract void Execute(TeamMember TM);
public void SendFlying(Vector2 direction, float Velocity, float verticalF) { if(Possessor!=null) Possessor.HeldBall = null; Possessor = null; verticalForce = verticalF; velocity = Velocity; this.direction = direction; this.direction.Normalize(); State = BallState.Flying; }
public void Clear() { direction = Vector2.Zero; apexReached = true; height = 3f; if (Possessor != null) Possessor.HeldBall = null; TimeWithBall = 0f; State = BallState.Flying; Possessor = null; Passed = false; Kicked = false; }
public TMemberItem(TeamMember Subject) { subject = Subject; id = subject.Name; color = subject.Team.Color; }
public override void Execute(TeamMember TM) { TM.Team.Score += scoreDelta; }