Subversion Repositories AndroidProjects

Rev

Rev 1463 | Rev 1488 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.ComponentModel;

using BauzoidNET.parser;

namespace BurutaruEditor.file
{
    public abstract class LevelObject
    {

        private Document mDocument = null;

        [Browsable(false)]
        public Document Doc
        {
            get { return mDocument; }
        }

        [Category("Basic Parameters")]
        public string Name { get; set; }

        public LevelObject(Document doc, string name)
        {
            mDocument = doc;
            Name = name;
        }

        public abstract void RenderSelected(int selectedPart, bool forHover = false);

        public abstract bool IsInside(float x, float y, out int selectedPart);
        public abstract void MoveBy(float x, float y, int selectedPart);

        public virtual bool ReadParameter(Tokenizer t, string id)
        {
            return false;
        }

        public virtual string GetPropertiesType()
        {
            return "[LevelObject]";
        }


    }
}