コード例 #1
0
        public void Init(PKGame game)
        {
            this.game      = game;
            this.startTime = DateTime.Now;

            this.endtime = new TimeSpan(0, 0, 15);
        }
コード例 #2
0
ファイル: HumanPlayer.cs プロジェクト: Menyueru/Plat_Kill
 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;
 }
コード例 #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;
 }
コード例 #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> >();
 }
コード例 #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;
 }
コード例 #6
0
ファイル: SoundManager.cs プロジェクト: Menyueru/Plat_Kill
        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);
        }
コード例 #7
0
ファイル: PlayerManager.cs プロジェクト: Menyueru/Plat_Kill
 public PlayerManager(PKGame game)
 {
     this.players   = new Dictionary <long, Player>();
     this.nextPoint = 0;
     this.game      = game;
 }
コード例 #8
0
ファイル: InputManager.cs プロジェクト: Menyueru/Plat_Kill
 public InputManager(PKGame game)
 {
     this.game = game;
 }
コード例 #9
0
 public Terrain(string path, PKGame game)
 {
     this.models = new Dictionary <string, SceneObject>();
     this.asset  = path;
     this.game   = game;
 }