예제 #1
0
 public Character(Game game, Vector3 pos, Vector3 scale)
     : base(game, "box", pos, scale, true)
 {
     weapons   = new List <Weapon>();
     curWeapon = null;
     rayColl   = new RayCollision(((Game1)game).World.CollisionSystem);;
 }
예제 #2
0
        public Weapon(Game game, string name, Vector3 pos, Vector3 rot, float fireDelta, float damage, float range, bool automatic)
            : base(game, name, pos, Vector3.One, false, rot)
        {
            rayColl = new RayCollision(((Game1)game).World.CollisionSystem);

            Deactivate();

            this.fireDelta = fireDelta;
            this.damage    = damage;
            this.range     = range;
            this.automatic = automatic;
            lastFireDelta  = 0;

            Body.Immovable = true;
            Body.DisableBody();
        }