public Field(int x, int y) { this.x = x; this.y = y; this.type = FieldTypes.Path; this.connection = null; this.hitbox = new Rectangle(x * Data.BlockSize, y * Data.BlockSize, Data.BlockSize, Data.BlockSize); this.spawner = null; }
public Field(int x, int y, FieldTypes type, Field Connection) { this.x = x; this.y = y; this.type = type; this.connection = Connection; this.hitbox = new Rectangle(x * Data.BlockSize, y * Data.BlockSize, Data.BlockSize, Data.BlockSize); this.spawner = null; }
public void Start() { if(type == FieldTypes.Spawner) { this.spawner = new MonsterSpawner(x,y,5,25,TimeSpan.FromSeconds(30),this); World.WorldList.Add(spawner); } }