コード例 #1
0
 protected TiledSprite(Texture2D texture, Tile tile, Color color, MonoBomberGame game)
 {
     this.texture = texture;
     this.color   = color;
     this.game    = game;
     this.tile    = tile ?? throw new ArgumentNullException();
 }
コード例 #2
0
 protected FreeMovingSprite(Texture2D texture, Vector2 pos, Color color, MonoBomberGame game)
 {
     this.texture = texture;
     this.pos     = pos;
     this.color   = color;
     this.game    = game;
 }
コード例 #3
0
        public Human(Vector2 pos, Color color,
                     Keys up, Keys left, Keys down, Keys right, Keys bomb, MonoBomberGame game) : base(pos, color, game)
        {
            // bombs
            this.bombCooldownLeft = 0;

            this.health = BASE_HEALTH;
            this.deaths = 0;

            // keys
            this.upKey    = up;
            this.leftKey  = left;
            this.downKey  = down;
            this.rightKey = right;
            this.bombKey  = bomb;
        }
コード例 #4
0
 public Bot(Vector2 pos, Color color, Human opponent, MonoBomberGame game) : base(pos, color, game)
 {
     this.opponent = opponent;
 }