示例#1
0
        public Plane(PointF location, float speed, float orientation, PointF destination, Color tColor, string team)
        {
            Location     = location;
            CurrentSpeed = speed;
            MaxSpeed     = 7;
            MinSpeed     = 3;
            Throttle     = 100;
            MaxFuel      = 1000;
            Fuel         = MaxFuel; //eventually have ability to set fuel load 100%, 90% etc.
            Orientation  = orientation;
            Destination  = destination;
            TurnSpeed    = 6.7f; //temporary for now
            TrailLength  = 15;
            TrailPoints  = new PointF[TrailLength];
            initializeTrail();
            TeamColor = tColor;
            Random r = new Random();

            PassiveSignature = new RadarSignature(Location, 10, r.Next(), team);
            ActiveSignature  = new RadarSignature(Location, 10, r.Next(), team);
            HeatSignature    = new HeatSignature(Location, calculate_EngineTemp(), team);
            AITarget         = new AutoTarget();
            AIEngage         = new AutoEngage();
            Missiles         = new List <Missile>();
            Team             = team;
            isSelected       = true;
        }
示例#2
0
 public HeatSignature DecayedHeadSignature(HeatSignature h)
 {
     h.Temperature -= 50;
     return(h);
 }