예제 #1
0
 /// <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();
 }
예제 #2
0
        /// <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();
        }
예제 #3
0
        public ActionResult DeleteConfirmed(int id)
        {
            TEAMS tEAMS = db.TEAMS.Find(id);

            db.TEAMS.Remove(tEAMS);
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
예제 #4
0
        public ActionResult PotwierdzenieUsunieciaFr(int id)
        {
            TEAMS tEAMS = db.TEAMS.Find(id);

            db.TEAMS.Remove(tEAMS);
            db.SaveChanges();
            return(RedirectToAction("Firmy"));
        }
예제 #5
0
 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));
 }
예제 #6
0
    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));
        }
    }
예제 #7
0
        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));
        }
예제 #8
0
        // 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));
        }
예제 #9
0
    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();
        }
    }
예제 #10
0
	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();


	}
예제 #11
0
	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();


	}
예제 #12
0
 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();
        }
예제 #14
0
 private void EndBattle(TEAMS winner)
 {
 }