示例#1
0
 /// <summary>
 /// Constructor.
 /// </summary>
 /// <param name="id"><see cref="Sprite.Id"/></param>
 /// <param name="x"><see cref="Sprite.X"/></param>
 /// <param name="y"><see cref="Sprite.Y"/></param>
 /// <param name="width"><see cref="Sprite.Width"/></param>
 /// <param name="height"><see cref="Sprite.Height"/></param>
 /// <param name="activated"><see cref="Activated"/></param>
 /// <param name="renderType"><see cref="Enums.RenderType"/></param>
 /// <param name="renderProperties">Datas required to initialize the <see cref="IRender"/>.</param>
 internal Gate(int id, double x, double y, double width, double height,
               bool activated, Enums.RenderType renderType, string[] renderProperties)
     : base(id, x, y, width, height, renderType, renderProperties)
 {
     Activated         = activated;
     _defaultActivated = activated;
 }
示例#2
0
 /// <summary>
 /// Constructor.
 /// </summary>
 /// <param name="id"><see cref="Sprite.Id"/></param>
 /// <param name="x"><see cref="Sprite.X"/></param>
 /// <param name="y"><see cref="Sprite.Y"/></param>
 /// <param name="width"><see cref="Sprite.Width"/></param>
 /// <param name="height"><see cref="Sprite.Height"/></param>
 /// <param name="floorType"><see cref="FloorType"/></param>
 /// <param name="renderType"><see cref="Enums.RenderType"/></param>
 /// <param name="renderProperties">Datas required to initialize the <see cref="Renders.IRender"/>.</param>
 internal Floor(int id, double x, double y, double width, double height,
                FloorType floorType, Enums.RenderType renderType, string[] renderProperties)
     : base(id, x, y, width, height, renderType, renderProperties)
 {
     FloorType  = floorType;
     SpeedRatio = Constants.FLOOR_SPEED_RATIO[FloorType];
 }
示例#3
0
 /// <summary>
 /// Constructor.
 /// </summary>
 /// <param name="id"><see cref="Sprite.Id"/></param>
 /// <param name="x"><see cref="Sprite.X"/></param>
 /// <param name="y"><see cref="Sprite.Y"/></param>
 /// <param name="width"><see cref="Sprite.Width"/></param>
 /// <param name="height"><see cref="Sprite.Height"/></param>
 /// <param name="lifepoints"><see cref="DamageableSprite.CurrentLifePoints"/></param>
 /// <param name="renderType"><see cref="Enums.RenderType"/></param>
 /// <param name="renderProperties">Datas required to initialize the <see cref="IRender"/>.</param>
 internal Rift(int id, double x, double y, double width, double height,
               double lifepoints, Enums.RenderType renderType, string[] renderProperties)
     : base(id, x, y, width, height, lifepoints, renderType, renderProperties)
 {
     ExplosionLifePointCost = Constants.RIFT_EXPLOSION_LIFE_POINT_COST;
     ArrowLifePointCost     = 0;
     CurrentLifePoints      = lifepoints;
 }
示例#4
0
 /// <summary>
 /// Constructor.
 /// </summary>
 /// <param name="id"><see cref="Sprite.Id"/></param>
 /// <param name="x"><see cref="Sprite.X"/></param>
 /// <param name="y"><see cref="Sprite.Y"/></param>
 /// <param name="width"><see cref="Sprite.Width"/></param>
 /// <param name="height"><see cref="Sprite.Height"/></param>
 /// <param name="actionDuration"><see cref="FloorTrigger._actionDuration"/></param>
 /// <param name="gateId"><see cref="GateId"/></param>
 /// <param name="appearOnActivation"><see cref="AppearOnActivation"/></param>
 /// <param name="renderType"><see cref="Enums.RenderType"/></param>
 /// <param name="renderProperties">Datas required to initialize the <see cref="Renders.IRender"/>.</param>
 /// <param name="onRenderType"><see cref="Enums.RenderType"/></param>
 /// <param name="onRenderProperties">Datas required to initialize <see cref="_renderOn"/>.</param>
 internal GateTrigger(int id, double x, double y, double width, double height,
                      double actionDuration, int gateId, bool appearOnActivation,
                      Enums.RenderType renderType, string[] renderProperties, Enums.RenderType onRenderType, string[] onRenderProperties)
     : base(id, x, y, width, height, actionDuration, renderType, renderProperties)
 {
     GateId             = gateId;
     AppearOnActivation = appearOnActivation;
     _renderOn          = GetRenderFromValues(onRenderType, onRenderProperties);
 }
示例#5
0
 /// <summary>
 /// Constructor.
 /// </summary>
 /// <param name="id"><see cref="Sprite.Id"/></param>
 /// <param name="x"><see cref="Sprite.X"/></param>
 /// <param name="y"><see cref="Sprite.Y"/></param>
 /// <param name="width"><see cref="Sprite.Width"/></param>
 /// <param name="height"><see cref="Sprite.Height"/></param>
 /// <param name="itemType"><see cref="_itemType"/></param>
 /// <param name="quantity"><see cref="_quantity"/></param>
 /// <param name="keyId"><see cref="_keyId"/></param>
 /// <param name="keyIdContainer"><see cref="_keyIdContainer"/></param>
 /// <param name="renderType"><see cref="Enums.RenderType"/></param>
 /// <param name="renderProperties">Datas required to initialize the <see cref="Renders.IRender"/>.</param>
 /// <param name="openRenderType"><see cref="Enums.RenderType"/></param>
 /// <param name="openRenderProperties">Datas required to initialize <see cref="_renderOpen"/>.</param>
 internal Chest(int id, double x, double y, double width, double height,
                Enums.ItemType?itemType, int quantity, int?keyId, int?keyIdContainer,
                Enums.RenderType renderType, string[] renderProperties, Enums.RenderType openRenderType, string[] openRenderProperties)
     : base(id, x, y, width, height, renderType, renderProperties)
 {
     _itemType       = itemType;
     _quantity       = quantity;
     _keyId          = keyId;
     _keyIdContainer = keyIdContainer;
     _renderOpen     = GetRenderFromValues(openRenderType, openRenderProperties);
 }
示例#6
0
文件: Door.cs 项目: thelpi/Rpeggiator
 /// <summary>
 /// Constructor.
 /// </summary>
 /// <param name="id"><see cref="Sprite.Id"/></param>
 /// <param name="x"><see cref="Sprite.X"/></param>
 /// <param name="y"><see cref="Sprite.Y"/></param>
 /// <param name="width"><see cref="Sprite.Width"/></param>
 /// <param name="height"><see cref="Sprite.Height"/></param>
 /// <param name="keyId"><see cref="_keyId"/></param>
 /// <param name="connectedScreenId"><see cref="_connectedScreenId"/></param>
 /// <param name="playerGoThroughX"><see cref="PlayerGoThroughX"/></param>
 /// <param name="playerGoThroughY"><see cref="PlayerGoThroughY"/></param>
 /// <param name="lockedRenderType"><see cref="Enums.RenderType"/></param>
 /// <param name="lockedRenderProperties">Datas required to initialize <see cref="_renderLocked"/>.</param>
 /// <param name="renderType"><see cref="Enums.RenderType"/></param>
 /// <param name="renderProperties">Datas required to initialize the <see cref="Renders.IRender"/>.</param>
 internal Door(int id, double x, double y, double width, double height, int?keyId, int connectedScreenId,
               double playerGoThroughX, double playerGoThroughY, Enums.RenderType lockedRenderType, string[] lockedRenderProperties,
               Enums.RenderType renderType, string[] renderProperties)
     : base(id, x, y, width, height, renderType, renderProperties)
 {
     _keyId             = keyId;
     _connectedScreenId = connectedScreenId;
     PlayerGoThroughX   = playerGoThroughX;
     PlayerGoThroughY   = playerGoThroughY;
     _renderLocked      = GetRenderFromValues(lockedRenderType, lockedRenderProperties);
 }
示例#7
0
 /// <summary>
 /// Constructor.
 /// </summary>
 /// <param name="id"><see cref="Sprite.Id"/></param>
 /// <param name="x"><see cref="Sprite.X"/></param>
 /// <param name="y"><see cref="Sprite.Y"/></param>
 /// <param name="width"><see cref="Sprite.Width"/></param>
 /// <param name="height"><see cref="Sprite.Height"/></param>
 /// <param name="lifepoints"><see cref="CurrentLifePoints"/></param>
 /// <param name="renderType"><see cref="Enums.RenderType"/></param>
 /// <param name="renderProperties">Datas required to initialize the <see cref="Renders.IRender"/>.</param>
 protected DamageableSprite(int id, double x, double y, double width, double height,
                            double lifepoints, Enums.RenderType renderType, string[] renderProperties)
     : base(id, x, y, width, height, renderType, renderProperties)
 {
     CurrentLifePoints = lifepoints;
 }
示例#8
0
 /// <summary>
 /// Constructor.
 /// </summary>
 /// <param name="id"><see cref="Sprite.Id"/></param>
 /// <param name="x"><see cref="Sprite.X"/></param>
 /// <param name="y"><see cref="Sprite.Y"/></param>
 /// <param name="width"><see cref="Sprite.Width"/></param>
 /// <param name="height"><see cref="Sprite.Height"/></param>
 /// <param name="actionDuration"><see cref="_actionDuration"/></param>
 /// <param name="renderType"><see cref="Enums.RenderType"/></param>
 /// <param name="renderProperties">Datas required to initialize the <see cref="Renders.IRender"/>.</param>
 protected FloorTrigger(int id, double x, double y, double width, double height
                        , double actionDuration, Enums.RenderType renderType, params string[] renderProperties)
     : base(id, x, y, width, height, renderType, renderProperties)
 {
     _actionDuration = actionDuration;
 }
示例#9
0
 /// <summary>
 /// Constructor.
 /// </summary>
 /// <param name="id"><see cref="Sprite.Id"/></param>
 /// <param name="x"><see cref="Sprite.X"/></param>
 /// <param name="y"><see cref="Sprite.Y"/></param>
 /// <param name="width"><see cref="Sprite.Width"/></param>
 /// <param name="height"><see cref="Sprite.Height"/></param>
 /// <param name="renderType"><see cref="Enums.RenderType"/></param>
 /// <param name="renderProperties">Datas required to initialize the <see cref="Renders.IRender"/>.</param>
 internal PermanentStructure(int id, double x, double y, double width, double height,
                             Enums.RenderType renderType, string[] renderProperties)
     : base(id, x, y, width, height, renderType, renderProperties)
 {
     // Empty.
 }
示例#10
0
文件: Pit.cs 项目: thelpi/Rpeggiator
 /// <summary>
 /// Constructor.
 /// </summary>
 /// <param name="id"><see cref="Sprite.Id"/></param>
 /// <param name="x"><see cref="Sprite.X"/></param>
 /// <param name="y"><see cref="Sprite.Y"/></param>
 /// <param name="width"><see cref="Sprite.Width"/></param>
 /// <param name="height"><see cref="Sprite.Height"/></param>
 /// <param name="screenIdEntrance"><see cref="ScreenIdEntrance"/></param>
 /// <param name="renderType"><see cref="Enums.RenderType"/></param>
 /// <param name="renderProperties">Datas required to initialize the <see cref="IRender"/>.</param>
 internal Pit(int id, double x, double y, double width, double height,
              int?screenIdEntrance, Enums.RenderType renderType, string[] renderProperties)
     : base(id, x, y, width, height, renderType, renderProperties)
 {
     ScreenIdEntrance = screenIdEntrance;
 }
示例#11
0
 /// <summary>
 /// Constructor.
 /// </summary>
 /// <param name="id"><see cref="Sprite.Id"/></param>
 /// <param name="x"><see cref="Sprite.X"/></param>
 /// <param name="y"><see cref="Sprite.Y"/></param>
 /// <param name="height"><see cref="Sprite.Height"/></param>
 /// <param name="width"><see cref="Sprite.Width"/></param>
 /// <param name="renderType"><see cref="Enums.RenderType"/></param>
 /// <param name="renderProperties">Datas required to initialize the <see cref="Renders.IRender"/>.</param>
 protected ActionnedItem(int id, double x, double y, double width, double height,
                         Enums.RenderType renderType, params string[] renderProperties)
     : base(id, x, y, width, height, renderType, renderProperties)
 {
     // Empty.
 }