Esempio n. 1
0
 public EffectTile(EffectTile other)
 {
     ID         = other.ID;
     Revealed   = other.Revealed;
     Danger     = other.Danger;
     TileStates = other.TileStates.Clone();
     TileLoc    = other.TileLoc;
 }
        protected virtual void PrepareTileDraw(SpriteBatch spriteBatch, int xx, int yy)
        {
            ZoneManager.Instance.CurrentMap.DrawLoc(spriteBatch, new Loc(xx * GraphicsManager.TileSize, yy * GraphicsManager.TileSize) - ViewRect.Start, new Loc(xx, yy), false);
            EffectTile effect = ZoneManager.Instance.CurrentMap.Tiles[xx][yy].Effect;

            if (effect.ID > -1 && effect.Exposed && !DataManager.Instance.HideObjects)
            {
                if (DataManager.Instance.GetTile(effect.ID).ObjectLayer)
                {
                    AddToDraw(backDraw, effect);
                }
                else
                {
                    AddToDraw(groundDraw, effect);
                }
            }
        }
Esempio n. 3
0
 protected Tile(Tile other)
 {
     Data      = other.Data.Copy();
     FloorTile = other.FloorTile.Copy();
     Effect    = new EffectTile(other.Effect);
 }
Esempio n. 4
0
 public Tile(int type, Loc loc)
 {
     Data      = new TerrainTile(type);
     FloorTile = new AutoTile();
     Effect    = new EffectTile(loc);
 }
Esempio n. 5
0
 public Tile()
 {
     Data      = new TerrainTile();
     FloorTile = new AutoTile();
     Effect    = new EffectTile();
 }
Esempio n. 6
0
 public Tile(int type, Loc loc)
 {
     Data   = new TerrainTile(type);
     Effect = new EffectTile(loc);
 }
Esempio n. 7
0
 public Tile(int type)
 {
     Data   = new TerrainTile(type);
     Effect = new EffectTile();
 }
Esempio n. 8
0
 public Tile()
 {
     Data   = new TerrainTile();
     Effect = new EffectTile();
 }