/// <summary> /// Constructor for the form /// </summary> /// <param name="sheet">Must be passed a valid TEAMS object to manipulate and work with.</param> public GREETFormattedResults(TEAMS sheet) { // We will use this teams object to pull the GREET values into the TEAMS class, and then reference them here so they can be displayed teams_sheet = sheet; InitializeComponent(); setDefaults(); }
/// <summary> /// The user selects "I Understand" to the copyright notice. /// CopyrightForm closes and the main TEAM Module Input form is loaded. /// </summary> private void I_Understand_Button_Click(object sender, EventArgs e) { TEAMS t = new TEAMS(); t.Show(); this.Close(); }
public ActionResult DeleteConfirmed(int id) { TEAMS tEAMS = db.TEAMS.Find(id); db.TEAMS.Remove(tEAMS); db.SaveChanges(); return(RedirectToAction("Index")); }
public ActionResult PotwierdzenieUsunieciaFr(int id) { TEAMS tEAMS = db.TEAMS.Find(id); db.TEAMS.Remove(tEAMS); db.SaveChanges(); return(RedirectToAction("Firmy")); }
public ActionResult Edit([Bind(Include = "Team_ID,Team_Name")] TEAMS tEAMS) { if (ModelState.IsValid) { db.Entry(tEAMS).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(tEAMS)); }
public void SetProgress(TEAMS team, int score) { if (this.team == team) { float fullWidth = baseWidth - (2f * sizeBuffer); float newWidth = ((fullWidth * (float)score) / (scoreLimit)); StartCoroutine(TweenWidth(newWidth)); } }
public ActionResult Create([Bind(Include = "Team_ID,Team_Name")] TEAMS tEAMS) { if (ModelState.IsValid) { db.TEAMS.Add(tEAMS); db.SaveChanges(); return(RedirectToAction("Index")); } return(View(tEAMS)); }
// GET: TEAMS/Delete/5 public ActionResult Delete(int?id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } TEAMS tEAMS = db.TEAMS.Find(id); if (tEAMS == null) { return(HttpNotFound()); } return(View(tEAMS)); }
public void DoEffect(TEAMS team) { if (!triggered) { altarFire.transform.localScale += Vector3.one; switch (team) { case TEAMS.ONE: altarFire.GetComponent<ParticleSystem>().startColor = Color.green; break; case TEAMS.TWO: altarFire.GetComponent<ParticleSystem>().startColor = Color.red; break; default: altarFire.GetComponent<ParticleSystem>().startColor = Color.white; break; } triggered = true; GetComponent<AudioSource>().Stop(); bang.Play(); victoryMusic.Play(); } }
public void AddScore(TEAMS team, int amount) { if (team == TEAMS.ONE) { _t1Score += amount; // Update UI! } else { _t2Score += amount; // Update UI! } if (onT1ScoreChange != null) onT1ScoreChange(_t1Score); if (onT2ScoreChange != null) onT2ScoreChange(_t2Score); scoreOne.text = t1Score + " - " + t2Score; scoreTwo.text = t2Score + " - " + t1Score; CheckVictory(); }
public void AddScore(TEAMS team, int amount) { if (team == TEAMS.ONE) { _t1Score += amount; // Update UI! } else { _t2Score += amount; // Update UI! } if (scoreBarHandlers != null) { scoreBarHandlers(TEAMS.ONE, _t1Score); scoreBarHandlers(TEAMS.TWO, _t2Score); } Debug.Log("Score changed"); scoreOne.text = t1Score + " - " + t2Score; scoreTwo.text = t2Score + " - " + t1Score; CheckVictory(); }
public SymbiotInputs GetInputs(TEAMS team) { if (team == TEAMS.ONE) { return symbiantOne; } else { return symbiantTwo; } }
//Actual resource arrays/sets will be filled using calculations from GREET public GREETFormattedResults(TEAMS t) { //We will use this teams object to pull the GREET values into the TEAMS class, and then reference them here so they can be displayed te = t; InitializeComponent(); }
private void EndBattle(TEAMS winner) { }