Ejemplo n.º 1
0
 public StaticGraphics(Bitmap image, PlacementType type, GameOfLife.Mechanics.Entities parent, EntityNames name = EntityNames.StaticGraphics, int posx = 0, int posy = 0)
     : base(parent, name)
 {
     this.X.X                 = posx; this.Y.Y = posy;
     this._image              = image;
     this._placement          = type;
     this._width              = this._image.Width;
     this._height             = this._image.Height;
     this._type               = EntityType.StaticGraphics;
     this._calculatePlacement = true;
 }
Ejemplo n.º 2
0
 public TextGraphics(string text, PlacementType type, GameOfLife.Mechanics.Entities parent, EntityNames name = EntityNames.TextGraphics, int posX = 0, int posY = 0)
     : base(parent, name)
 {
     this._textParts   = new string[] { text };
     this._type        = EntityType.TextGraphics;
     this.X.X          = posX; this.Y.Y = posY;
     this._placement   = type;
     this._font        = new Font("Calibri", this._fontSize);
     this._brush       = new SolidBrush(Color.FromArgb(this._r, this._g, this._b));
     this._shadowBrush = new SolidBrush(Color.FromArgb(250, 0, 0, 0));
     this.SetColor(255, 255, 255);
     this._calculatePlacement = true;
 }
Ejemplo n.º 3
0
        public Cell(int posx, int posy, GameOfLife.Mechanics.Entities parent, EntityNames name = EntityNames.Cell)
            : base(parent, name)
        {
            this._isAlive   = true;
            this._positionX = posx;
            this._positionY = posy;
            this.SetColor(255, 255, 255);
            this.Alpha       = 0;
            this._parent     = parent;
            this._isDrawable = true;

            this._brush = new SolidBrush(Color.FromArgb(this.Alpha, this.R, this.G, this.B));

            this._type = EntityType.Cell;
        }
Ejemplo n.º 4
0
 public TestSaveButton(GameOfLife.Mechanics.Entities parent, Logic logic, PlacementType type, int posx = 0, int posy = 0)
     : base(Resources.test_save, type, parent, EntityNames.TestDeleteButton, posx, posy)
 {
     this._logic = logic;
 }
Ejemplo n.º 5
0
 public Cell(int posx, int posy, GameOfLife.Mechanics.Entities parent, bool isUsedForTestPurposes)
     : this(posx, posy, parent)
 {
     this._isTestable = isUsedForTestPurposes;
 }
Ejemplo n.º 6
0
 public TestButton(GameOfLife.Mechanics.Entities parent, Logic logic, PlacementType type, EntityNames name = EntityNames.TestButton, int posx = 0, int posy = 0)
     : base(Resources.button, type, parent, name, posx, posy)
 {
     this._logic = logic;
 }
Ejemplo n.º 7
0
 public ClickableGraphics(Bitmap image, PlacementType type, GameOfLife.Mechanics.Entities parent, EntityNames name = EntityNames.ClickableGraphics, int posx = 0, int posy = 0)
     : base(image, type, parent, name, posx, posy)
 {
     this._isClickable = true;
     this._type        = EntityType.ClickableGraphics;
 }
Ejemplo n.º 8
0
 public Grid(GameOfLife.Mechanics.Entities parent, EntityNames name = EntityNames.Grid)
     : base(parent, name)
 {
     this._type = EntityType.Grid;
 }
Ejemplo n.º 9
0
 public TextGraphics(string[] textData, PlacementType type, GameOfLife.Mechanics.Entities parent, EntityNames name = EntityNames.TextGraphics, int posX = 0, int posY = 0)
     : this(textData.ToString(), type, parent, name, posX, posY)
 {
     this._textParts = textData;
 }