Пример #1
0
        public Snowball(Player _player, Vector3 center_, Vector3 size_)
            : base(center_, size_, Globals.Game_Obj_Quat)
        {
            // max - min / max_siz -4  * (size.z - 4) + min
            Damage = ((Globals.max_snowball_damage - Globals.min_snowball_damage) /
                      (Globals.Max_projectile_size - 4)) * (size.Z - 4) + Globals.min_snowball_damage;

            Owner = _player;
            My_Team = _player.Team;
            melt_clock = new Stopwatch();
            Stuck = false;
        }
Пример #2
0
        public Projectile(Player _player,Vector3 center_, Vector3 size_, Quaternion theta_ )
            : base(center_, size_, theta_)
        {
            damamge_dealt = false;
            damage = size.Length();

            Life_clock = new Stopwatch();
            Life_clock.Start();

            if (_player != null)
            {
                owner = _player;
                my_team = _player.Team;
            }
        }
Пример #3
0
 public void add_player(Player p)
 {
     players.Add(p);
     add_moveable(p);
 }
Пример #4
0
 public void remove_player(Player p)
 {
     if (p == null)
         return;
     players.Remove(p);
 }
Пример #5
0
 public void update_player_actions(Player Tron)
 {
 }
Пример #6
0
 public void add_player(Player player)
 {
     members.Add(player);
 }