コード例 #1
0
ファイル: Bullet.cs プロジェクト: dhoeltge/BotChallenge
        public Bullet(Vector2 pos, Vector2 velocity, int id, Color color, EnvShooter env)
        {
            mask = new M_Circle(pos, RADIUS);

            this.pos      = this.lastPos = lastLastPos = pos;
            this.velocity = velocity;
            this.id       = id;
            this.color    = color;
            this.env      = env;
        }
コード例 #2
0
            internal void Initialize(EnvShooter env, Bot[] enemies, bool[,] map, Vector2 pos, int id)
            {
                mask = new M_Circle(pos, RADIUS);

                this.env     = env;
                this.enemies = enemies;
                this.map     = map;
                this.pos     = pos;
                this.id      = id;

                health = 1;
                ammo   = 3;
                charge = 0;

                rand = Env.constRand;
            }