示例#1
0
 public LootBox(Model.Vec2Double position, Model.Vec2Double size, Model.Item item)
 {
     this.Position = position;
     this.Size     = size;
     this.Item     = item;
     this.IsActive = true;
 }
示例#2
0
 public Mine(int playerId, Model.Vec2Double position, Model.Vec2Double size, Model.MineState state, double?timer, double triggerRadius, Model.ExplosionParameters explosionParameters)
 {
     this.PlayerId            = playerId;
     this.Position            = position;
     this.Size                = size;
     this.State               = state;
     this.Timer               = timer;
     this.TriggerRadius       = triggerRadius;
     this.ExplosionParameters = explosionParameters;
 }
示例#3
0
 public UnitAction(double velocity, bool jump, bool jumpDown, Model.Vec2Double aim, bool shoot, bool swapWeapon, bool plantMine)
 {
     this.Velocity   = velocity;
     this.Jump       = jump;
     this.JumpDown   = jumpDown;
     this.Aim        = aim;
     this.Shoot      = shoot;
     this.SwapWeapon = swapWeapon;
     this.PlantMine  = plantMine;
 }
示例#4
0
 public Bullet(Model.WeaponType weaponType, int unitId, int playerId, Model.Vec2Double position, Model.Vec2Double velocity, int damage, double size, Model.ExplosionParameters?explosionParameters)
 {
     this.WeaponType          = weaponType;
     this.UnitId              = unitId;
     this.PlayerId            = playerId;
     this.Position            = position;
     this.Velocity            = velocity;
     this.Damage              = damage;
     this.Size                = size;
     this.ExplosionParameters = explosionParameters;
 }
示例#5
0
 public Unit(int playerId, int id, int health, Model.Vec2Double position, Model.Vec2Double size, Model.JumpState jumpState, bool walkedRight, bool stand, bool onGround, bool onLadder, int mines, Model.Weapon?weapon)
 {
     this.PlayerId    = playerId;
     this.Id          = id;
     this.Health      = health;
     this.Position    = position;
     this.Size        = size;
     this.JumpState   = jumpState;
     this.WalkedRight = walkedRight;
     this.Stand       = stand;
     this.OnGround    = onGround;
     this.OnLadder    = onLadder;
     this.Mines       = mines;
     this.Weapon      = weapon;
 }
示例#6
0
 public Properties(int maxTickCount, int teamSize, double ticksPerSecond, int updatesPerTick, Model.Vec2Double lootBoxSize, Model.Vec2Double unitSize, double unitMaxHorizontalSpeed, double unitFallSpeed, double unitJumpTime, double unitJumpSpeed, double jumpPadJumpTime, double jumpPadJumpSpeed, int unitMaxHealth, int healthPackHealth, System.Collections.Generic.IDictionary <Model.WeaponType, Model.WeaponParameters> weaponParameters, Model.Vec2Double mineSize, Model.ExplosionParameters mineExplosionParameters, double minePrepareTime, double mineTriggerTime, double mineTriggerRadius, int killScore)
 {
     this.MaxTickCount            = maxTickCount;
     this.TeamSize                = teamSize;
     this.TicksPerSecond          = ticksPerSecond;
     this.UpdatesPerTick          = updatesPerTick;
     this.LootBoxSize             = lootBoxSize;
     this.UnitSize                = unitSize;
     this.UnitMaxHorizontalSpeed  = unitMaxHorizontalSpeed;
     this.UnitFallSpeed           = unitFallSpeed;
     this.UnitJumpTime            = unitJumpTime;
     this.UnitJumpSpeed           = unitJumpSpeed;
     this.JumpPadJumpTime         = jumpPadJumpTime;
     this.JumpPadJumpSpeed        = jumpPadJumpSpeed;
     this.UnitMaxHealth           = unitMaxHealth;
     this.HealthPackHealth        = healthPackHealth;
     this.WeaponParameters        = weaponParameters;
     this.MineSize                = mineSize;
     this.MineExplosionParameters = mineExplosionParameters;
     this.MinePrepareTime         = minePrepareTime;
     this.MineTriggerTime         = mineTriggerTime;
     this.MineTriggerRadius       = mineTriggerRadius;
     this.KillScore               = killScore;
 }