public Bullet(Vector2 pos, Vector2 velocity, int id, Color color, EnvBumper 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; }
internal void Initialize(EnvBumper 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; }