コード例 #1
0
ファイル: MovedPerson.cs プロジェクト: Sanyco007/Platformer
        //Область столкновения
        public BBox GetBounds()
        {
            float x     = position.X;
            float y     = position.Y;
            float width = (state == State.Attack)
                ? currentSprite.GetBounds().Width : standSprite.GetBounds().Width;
            float height = currentSprite.GetBounds().Height;

            return(new BBox(x, y, width, height, ObjectType.Person, ID));
        }