Exemplo n.º 1
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (LevelId != 0)
            {
                hash ^= LevelId.GetHashCode();
            }
            if (Star != 0)
            {
                hash ^= Star.GetHashCode();
            }
            if (BuyCount != 0)
            {
                hash ^= BuyCount.GetHashCode();
            }
            if (Count != 0)
            {
                hash ^= Count.GetHashCode();
            }
            if (MaxScore != 0)
            {
                hash ^= MaxScore.GetHashCode();
            }
            if (ResetTime != 0L)
            {
                hash ^= ResetTime.GetHashCode();
            }
            if (ActivityId != 0)
            {
                hash ^= ActivityId.GetHashCode();
            }
            return(hash);
        }
Exemplo n.º 2
0
        public ActionResult DeleteConfirmed(int id)
        {
            MaxScore maxScore = db.MaxScores.Find(id);

            db.MaxScores.Remove(maxScore);
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
 void Start()
 {
     maxScore = GameObject.Find("MaxScore").GetComponent <MaxScore>();
     effect   = GetComponent <AudioSource>();
     btnTitle.onClick.AddListener(OnTitle);
     btnExit.onClick.AddListener(OnExit);
     SetResultText();
 }
Exemplo n.º 4
0
 private void Start()
 {
     maxScore = GameObject.Find("MaxScore").GetComponent <MaxScore>();
     effect   = GetComponent <AudioSource>();
     btnStart.onClick.AddListener(OnStart);
     btnExit.onClick.AddListener(OnExit);
     SetMaxScore(maxScore.GetMaxScore());
 }
Exemplo n.º 5
0
 public ActionResult Edit([Bind(Include = "MaxScoreID,MaxScoreType")] MaxScore maxScore)
 {
     if (ModelState.IsValid)
     {
         db.Entry(maxScore).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(maxScore));
 }
Exemplo n.º 6
0
    public GUIStyle guistyle;                 // 폰트 스타일.
    void Start()
    {
        this.game_status    = this.gameObject.GetComponent <GameStatus>();
        this.player_control = GameObject.Find("Player").GetComponent <PlayerControl>();
        maxScore            = GameObject.Find("MaxScore").GetComponent <MaxScore>();
        maxScore.ResetPresentRecord();

        this.step              = STEP.PLAY;
        this.next_step         = STEP.PLAY;
        this.guistyle.fontSize = 64;
    }
Exemplo n.º 7
0
        public ActionResult Create([Bind(Include = "MaxScoreID,MaxScoreType")] MaxScore maxScore)
        {
            if (ModelState.IsValid)
            {
                db.MaxScores.Add(maxScore);
                db.SaveChanges();
                return(RedirectToAction("Index"));
            }

            return(View(maxScore));
        }
Exemplo n.º 8
0
        // GET: MaxScores/Delete/5
        public ActionResult Delete(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            MaxScore maxScore = db.MaxScores.Find(id);

            if (maxScore == null)
            {
                return(HttpNotFound());
            }
            return(View(maxScore));
        }
Exemplo n.º 9
0
 public static Offset <MutatorSettings> CreateMutatorSettings(FlatBufferBuilder builder,
                                                              MatchLength matchLength                   = MatchLength.Five_Minutes,
                                                              MaxScore maxScore                         = MaxScore.Unlimited,
                                                              OvertimeOption overtimeOption             = OvertimeOption.Unlimited,
                                                              SeriesLengthOption seriesLengthOption     = SeriesLengthOption.Unlimited,
                                                              GameSpeedOption gameSpeedOption           = GameSpeedOption.Default,
                                                              BallMaxSpeedOption ballMaxSpeedOption     = BallMaxSpeedOption.Default,
                                                              BallTypeOption ballTypeOption             = BallTypeOption.Default,
                                                              BallWeightOption ballWeightOption         = BallWeightOption.Default,
                                                              BallSizeOption ballSizeOption             = BallSizeOption.Default,
                                                              BallBouncinessOption ballBouncinessOption = BallBouncinessOption.Default,
                                                              BoostOption boostOption                   = BoostOption.Normal_Boost,
                                                              RumbleOption rumbleOption                 = RumbleOption.None,
                                                              BoostStrengthOption boostStrengthOption   = BoostStrengthOption.One,
                                                              GravityOption gravityOption               = GravityOption.Default,
                                                              DemolishOption demolishOption             = DemolishOption.Default,
                                                              RespawnTimeOption respawnTimeOption       = RespawnTimeOption.Three_Seconds)
 {
     builder.StartObject(16);
     MutatorSettings.AddRespawnTimeOption(builder, respawnTimeOption);
     MutatorSettings.AddDemolishOption(builder, demolishOption);
     MutatorSettings.AddGravityOption(builder, gravityOption);
     MutatorSettings.AddBoostStrengthOption(builder, boostStrengthOption);
     MutatorSettings.AddRumbleOption(builder, rumbleOption);
     MutatorSettings.AddBoostOption(builder, boostOption);
     MutatorSettings.AddBallBouncinessOption(builder, ballBouncinessOption);
     MutatorSettings.AddBallSizeOption(builder, ballSizeOption);
     MutatorSettings.AddBallWeightOption(builder, ballWeightOption);
     MutatorSettings.AddBallTypeOption(builder, ballTypeOption);
     MutatorSettings.AddBallMaxSpeedOption(builder, ballMaxSpeedOption);
     MutatorSettings.AddGameSpeedOption(builder, gameSpeedOption);
     MutatorSettings.AddSeriesLengthOption(builder, seriesLengthOption);
     MutatorSettings.AddOvertimeOption(builder, overtimeOption);
     MutatorSettings.AddMaxScore(builder, maxScore);
     MutatorSettings.AddMatchLength(builder, matchLength);
     return(MutatorSettings.EndMutatorSettings(builder));
 }
Exemplo n.º 10
0
 void Start()
 {
     collected = GameObject.FindGameObjectWithTag("Score").GetComponent <Score>();
     mxScore   = GameObject.FindGameObjectWithTag("MaxScore").GetComponent <MaxScore>();
 }
Exemplo n.º 11
0
 public override string GetStatusReadout()
 {
     return(Score.ToString() + " / " + MaxScore.ToString()); //this prints the current score
 }
Exemplo n.º 12
0
 // Use this for initialization
 void Start()
 {
     instance   = this;
     label      = GetComponent <UILabel>();
     label.text = "Best:" + GameDataManager.instance.gameData.PlayerScore.ToString();
 }
Exemplo n.º 13
0
 void Update()
 {
     //Time Game
     TimeGame += Time.deltaTime;
     //Time Cooldown
     Cooldown -= Time.deltaTime;
     Movment();
     ScoreCount();
     //UI interface
     SpeedText.text    = "Speed: " + SpeedNow.ToString();
     ScoreText.text    = "Score: " + Score.ChangeScore();
     DataGameOver.text = "Score: " + Score.ToString() + "\n" + "Time Game: " + CountTime.ToString()
                         + "\n" + "Asteroid Count: " + CountAsteroid.ToString() + "\n" + "Max Score Game: " + MaxScore.ToString() + "\n" + "Max Asteroid Count: " + MaxAsteroid.ToString();
 }
Exemplo n.º 14
0
 public static void AddMaxScore(FlatBufferBuilder builder, MaxScore maxScore)
 {
     builder.AddSbyte(1, (sbyte)maxScore, 0);
 }
Exemplo n.º 15
0
 public override string GetStatusReadout()
 {
     return(Score + " / " + MaxScore.ToString());
     //Getstatusreadout returns the score of bowling pins knocked down.
 }
Exemplo n.º 16
0
 public string GetCountryInCsv()
 {
     return($"{CountryName};{AverageScore.ToString()};{MedianScore.ToString()};{MaxScore.ToString()};{MaxScorePerson};{MinScore.ToString()};{MinScorePerson};{RecordCount.ToString()}");
 }
Exemplo n.º 17
0
 public override string ToString()
 {
     return($"{Name} - Avg: {AverageScore.ToString("F3")}, Max: {MaxScore.ToString("F3")}");
 }
Exemplo n.º 18
0
 public override string GetStatusReadout()
 {
     return(Score.ToString() + " / " + MaxScore.ToString());
 }
Exemplo n.º 19
0
 public void Reset()
 {
     MaxScore.Save("0");
 }