Example #1
0
        public virtual void drawMe()
        {
            onDraw(this);

            if (image != null)
            {
                _animationHasEnded = image.draw((int)_position.X, (int)_position.Y);
            }

            if (showHitBox && _hitBox != null)
            {
                _hitBox.draw();
            }
        }
Example #2
0
        public virtual void drawMe(bool useOverlay = false, SpriteBatch spriteBatch = null)
        {
            onDraw(this);

            //Color overlay = useOverlay ? Controllers.GameControllers.CDayClock.overlay : Color.White;

            if (image != null && _state != ACTOR_STATES.INVISIBLE && !hidden)
            {
                _animationHasEnded = image.draw((int)_position.X, (int)_position.Y, useOverlay, spriteBatch);
            }

            if (showHitBox && _hitBox != null)
            {
                _hitBox.draw();
            }
        }