mirror of
https://github.com/danbulant/Cosmos
synced 2026-05-19 20:39:01 +00:00
55 lines
1.1 KiB
C#
55 lines
1.1 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
|
|
namespace Orvid.Graphics.Shapes
|
|
{
|
|
public abstract class Shape
|
|
{
|
|
private int x;
|
|
public Int32 X
|
|
{
|
|
get
|
|
{
|
|
return x;
|
|
}
|
|
set
|
|
{
|
|
Modified = true;
|
|
x = value;
|
|
}
|
|
}
|
|
private int y;
|
|
public Int32 Y
|
|
{
|
|
get
|
|
{
|
|
return y;
|
|
}
|
|
set
|
|
{
|
|
Modified = true;
|
|
y = value;
|
|
}
|
|
}
|
|
private bool modified = true;
|
|
public bool Modified
|
|
{
|
|
get
|
|
{
|
|
return modified;
|
|
}
|
|
internal set
|
|
{
|
|
modified = value;
|
|
if (modified)
|
|
{
|
|
Parent.Modified = true;
|
|
}
|
|
}
|
|
}
|
|
public ShapedImage Parent { get; set; }
|
|
public abstract void Draw();
|
|
}
|
|
}
|