Esempio n. 1
0
        public void Init(PKGame game)
        {
            this.game      = game;
            this.startTime = DateTime.Now;

            this.endtime = new TimeSpan(0, 0, 15);
        }
Esempio n. 2
0
 public HumanPlayer(long id, long health, long stamina, long defense, long meleePower, long rangePower, long speed, long jumpSpeed, Vector3 position, float rotationSpeed, float mass, float width, float height, float length, bool isLocal, PKGame game, Camera camera)
     : base(id, health, stamina, defense, meleePower, rangePower, speed, jumpSpeed, position, rotationSpeed, mass, width, height, length, isLocal)
 {
     this.inputManager = new InputManager(game);
     this.game         = game;
     this.activeCamera = camera;
 }
Esempio n. 3
0
 public AIPlayer(long id, long health, long stamina, long defense, long meleePower, long rangePower, long speed, long jumpSpeed, Vector3 position, float rotationSpeed, float mass, float width, float height, float length, bool isLocal, PKGame game, String difficulty)
     : base(id, health, stamina, defense, meleePower, rangePower, speed, jumpSpeed, position, rotationSpeed, mass, width, height, length, isLocal)
 {
     this.game          = game;
     this.StateManager  = new StateManager(this, difficulty);
     this.movingTowards = new Vector2(this.Position.X, this.Position.Z);
     this.gotWeapon     = true;
 }
Esempio n. 4
0
 public WeaponManager(PKGame game)
 {
     this.game             = game;
     this.differentWeapons = DeserializeCharacterCollection("Content\\Weapons\\Weapons.xml").Weapons;
     this.MaxWeapons       = differentWeapons.Length;
     this.ReloadWeapons    = new TimeSpan(0, 0, 5);
     this.spawnPoints      = new List <Vector3>();
     this.activeWeapons    = new Dictionary <long, Tuple <Weapon, Box> >();
 }
Esempio n. 5
0
 public ProjectileManager(PKGame game, Camera camera)
 {
     this.camera      = camera;
     this.game        = game;
     this.projectiles = new Dictionary <long, Projectile>();
     projectileID     = 0;
     this.firerate    = new TimeSpan(0, 0, 0, 0, 700);
     this.lastshot    = DateTime.Now;
 }
Esempio n. 6
0
        public SoundManager(PKGame game, int MasterVolume)
        {
            this.Game         = game;
            this.MasterVolume = MasterVolume;
            this.Songs        = new List <Song>();
            this.SoundFXs     = new Dictionary <SoundEffects, SoundEffectInstance>();

            MediaPlayer.Volume = MasterVolume / 10;

            this.LoadSounds(game.Content);
        }
Esempio n. 7
0
 public PlayerManager(PKGame game)
 {
     this.players   = new Dictionary <long, Player>();
     this.nextPoint = 0;
     this.game      = game;
 }
Esempio n. 8
0
 public InputManager(PKGame game)
 {
     this.game = game;
 }
Esempio n. 9
0
 public Terrain(string path, PKGame game)
 {
     this.models = new Dictionary <string, SceneObject>();
     this.asset  = path;
     this.game   = game;
 }