예제 #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();
            }
        }
예제 #2
0
파일: CActor.cs 프로젝트: mzaman07/kot-mono
        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();
            }
        }