Пример #1
0
        public PlayMenu(List <InputPlayer> PlayerInput)
        {
            m_GameInfo = new InputGameInfo();
            m_GameInfo.CardMultiplier = 1;
            m_GameInfo.Aliens         = 8;

            m_Buttons     = new List <Button>();
            playerbuttons = new List <Button>();
            m_Players     = PlayerInput;
            playerlabels  = new List <CCLabel>();
        }
Пример #2
0
        public GameScene(CCGameView View, InputGameInfo info) : base(View)
        {
            m_Game = new GameBase(this, info);

            this.AddLayer(m_BackgroundLayer = new BackgroundLayer("achtergrond1"), 0);
            this.AddLayer(m_BoardLayer      = new BoardLayer(), 1);
            this.AddLayer(m_Overlay         = new Overlay(this), 2);

            var touchListener = new CCEventListenerTouchAllAtOnce();

            touchListener.OnTouchesEnded = OnTouchesEnded;
            touchListener.OnTouchesBegan = OnTouchesBegan;
            touchListener.OnTouchesMoved = OnTouchesMoved;
            AddEventListener(touchListener, this);
        }
Пример #3
0
        //  bool connect;

        public GameBase(GameScene Scene, InputGameInfo info)
        {
            m_Players = new List <Player>();
            foreach (InputPlayer i in info.Players)
            {
                Player p = new Player();
                p.Name           = i.Name;
                p.PlayerColor    = i.Color;
                p.NumberOfAliens = (int)info.Aliens;
                m_Players.Add(p);
            }

            m_Scene        = Scene;
            m_Board        = new Board();
            m_Deck         = new Deck(info.CardMultiplier);
            m_CheckedCards = new List <CCPoint>();

            //connect = false;
        }