Ejemplo n.º 1
0
        private void pcb_MouseMove(object sender, MouseEventArgs e)
        {
            int HoverX = e.X / 16;
            int HoverY = e.Y / 16;
            int off    = vScrollBar1.Value * 0x100;

            HoverTile = off + (HoverY * 16) + HoverX;
            toolStripStatusLabel1.Text = $"Tile: {HoverTile.ToString("X3")}";
        }
Ejemplo n.º 2
0
 //called when the current selected unit has a host - used to validate tiles
 override public bool UpdateValidatedTiles()
 {
     if (HoverTile)
     {
         GM.TileMan.Validate(HoverTile, 3, 999, false);
     }
     if (HoverTile)
     {
         HoverTile.Validate();
     }
     return(true);
 }
Ejemplo n.º 3
0
    //called when the current selected unit has a host - used to validate tiles
    override public bool UpdateValidatedTiles()
    {
        if (HoverTile == null)
        {
            return(true);
        }

        GM.TileMan.Validate(HoverTile, DIST, 999, false);
        HoverTile.Validate();

        return(true);
    }
Ejemplo n.º 4
0
    //called when the current selected unit has a host - used to validate tiles
    override public bool UpdateValidatedTiles()
    {
        if (HoverTile)
        {
            GM.TileMan.Validate(HoverTile, 5, 5, new TileManager.validater(validaterNormalize));
        }
        if (HoverTile)
        {
            HoverTile.Validate();
        }

        return(true);
    }
Ejemplo n.º 5
0
    //called when the current selected unit has a host - used to validate tiles
    override public bool UpdateValidatedTiles()
    {
        if (explosion)
        {
            return(true);
        }

        if (HoverTile)
        {
            GM.TileMan.Validate(HoverTile, 1, 2, false);
        }
        if (HoverTile)
        {
            HoverTile.Validate();
        }
        return(true);
    }
Ejemplo n.º 6
0
 void Awake()
 {
     Instance = this;
 }
Ejemplo n.º 7
0
 public override void Do()
 {
     HoverTile.incHeight(HDELTA);
 }
Ejemplo n.º 8
0
 public virtual void Do()
 {
     HoverTile.Dig(HDELTA, false);
 }