예제 #1
0
        static internal PowerCounter ToPowerCounter(this WCFPowerCounter o)
        {
            PowerCounter result = new PowerCounter();

            result.Id        = o.Id;
            result.TokenType = o.TokenType;
            result.Terrain   = o.Terrain;

            return(result);
        }
예제 #2
0
        public void NewPowerCounter(Terrain terrain)
        {
            PowerCounter result = new PowerCounter()
            {
                Terrain      = terrain.Name,
                Terrain1     = terrain,
                TokenType    = "Жетон_власти",
                Game         = this.Game,
                GameUserInfo = this,
                Id           = Guid.NewGuid(),
                Step         = this.Step
            };

            this.PowerCounter.Add(result);
        }
예제 #3
0
        public void CopyPowerCounter(GameUserInfo gameUserInfo)
        {
            PowerCounter result = new PowerCounter();

            result.GameUserInfo = gameUserInfo;
            result.Terrain1     = this.Terrain1;

            result.Id        = Guid.NewGuid();
            result.Step      = gameUserInfo.Step;
            result.Game      = gameUserInfo.Game;
            result.TokenType = this.TokenType;
            result.Terrain   = this.Terrain;

            gameUserInfo.PowerCounter.Add(result);
        }