/// <summary> /// Konstruktor piecioparametrowy. /// </summary> /// <param name="yBegin">Wysokosc poczatku obiektu.</param> /// <param name="yEnd">Wysokosc konca obiektu.</param> /// <param name="hitBound">Prostokat opisujacy obiekt.</param> /// <param name="type">Typ obiektu.</param> /// <param name="collisionRectangles">Lista prostokatow z ktorymi moga wystapic zderzenia.</param> public ShipTile(float yBegin, float yEnd, float viewXShift, Quadrangle hitBound, int type, List <Quadrangle> collisionRectangles, bool traversable) : base(yBegin, yEnd, viewXShift, hitBound, collisionRectangles) { this.type = type; this.traversable = traversable; sinkComponent = new SinkComponent(this, this); }
protected ShipBunkerTile(float yBegin, float yEnd, float viewXShift, Quadrangle hitBound, int soldierNum, int generalNum, int type, List <Quadrangle> collisionRectangle) : base(yBegin, yEnd, viewXShift, hitBound, soldierNum, generalNum, type, collisionRectangle) { sinkComponent = new SinkComponent(this, this); }