protected override void OnMouseDown(MouseEventArgs e)
 {
     base.OnMouseDown(e);
     if (Enabled)
     {
         _buttonState = AndroidState.Pressed;
     }
     Refresh();
 }
 protected override void OnMouseUp(MouseEventArgs e)
 {
     base.OnMouseUp(e);
     if (Enabled)
     {
         _buttonState = AndroidState.Normal;
     }
     Refresh();
 }
Beispiel #3
0
 void Start()
 {
     fullLine = "";
     readLine = "";
     //Input.
     androidState = new AndroidUpset(this);
     androidState.Enter();
     AndroidStatus.AddTalkingElement(starting_element);
 }
Beispiel #4
0
        /// <summary>
        /// LoadContent will be called once per game and is the place to load
        /// all of your content.
        /// </summary>
        protected override void LoadContent()
        {   
            _spriteBatch = new SpriteBatch(GraphicsDevice);
            GameContent = new GameContent(Content);
            Background = new AndroidBackground(GameContent.TableTop, ScreenWidth, ScreenHeight);
            BlindList = new AndroidCard[2];
            PlayedCards = new AndroidCard[6];

            _titleState = new AndroidTitleScreen(this, _graphics.GraphicsDevice, GameContent);
            _currentState = _titleState;     
        }
Beispiel #5
0
 public void ChangeState(AndroidState state)
 {
     _currentState = state;
 }