Example #1
0
 private Chef(Chef Chef, Vector3 Position)
     : base(Chef._Model, Position, Chef._Min, Chef._Max)
 {
     _Direction = new Vector3(0, 0, -1);
     _Destination = _Position;
     _Velocity = Vector3.Zero;
     _Strength = Chef._Strength;
     _Moving = false;
 }
Example #2
0
 public Hole(Model Model, Vector3 Position, Vector3 MinVec, Vector3 MaxVec, Chef Chef, int MinMove, int MaxMove, int MinSpawn, int MaxSpawn)
     : base(Model, Position, MinVec, MaxVec)
 {
     _MinMove = MinMove;
     _MaxMove = MaxMove;
     _MinSpawn = MinSpawn;
     _MaxSpawn = MaxSpawn;
     _Elapse = 0;
     _ChefList = new List<Chef>();
     _Moving = false;
     _Chef = Chef;
     _World = Matrix.CreateRotationX((float)-(Math.PI / 2)) * (Matrix.CreateTranslation(_Position));
     _Interval = r.Next(_MinMove, _MaxMove);
     _RespawnTimer = r.Next(_MinSpawn, _MaxSpawn);
     _StartSpawn = false;
 }
Example #3
0
 public void Summon(Chef Chef)
 {
     Chef.Move(_Position);
     _ChefList.Add(Chef);
     _StartSpawn = true;
 }
 public EnemyHealth(Model Model, Vector3 Position, ref Chef Chef, int ChefHealth)
     : base(Model, Position)
 {
     _Chef = Chef;
     _ChefHealth = ChefHealth;
 }
Example #5
0
 internal Chef Clone(Vector3 Position)
 {
     Chef c = new Chef(this, Position);
     return c;
 }