public BOBrick() { ent = null; x = y = width = height = 0; powerup = POWERUP.NONE; isBroken = false; }
public virtual void ReadFromSaveGame(VFile savefile, GameBustOutWindow game) { savefile.Read(out x); savefile.Read(out y); savefile.Read(out width); savefile.Read(out height); savefile.Read(out powerup); savefile.Read(out isBroken); savefile.Read(out int index); ent = game.entities[index]; }
public BOBrick(BOEntity ent, float x, float y, float width, float height) { this.ent = ent; this.x = x; this.y = y; this.width = width; this.height = height; powerup = POWERUP.NONE; isBroken = false; ent.position.x = x; ent.position.y = y; ent.SetSize(width, height); ent.SetMaterial("game/bustout/brick"); ent.game.entities.Add(ent); }