Example #1
0
        /// <summary>
        /// Create a player object. This is used during setup.
        /// </summary>
        /// <param name="guid">The unique identifier for this player.</param>
        /// <param name="name">The name of the player.</param>
        /// <param name="school">The school this player is from.</param>
        /// <param name="language">The computer language this A.I. was written in.</param>
        /// <param name="avatar">The avatar of the player.</param>
        /// <param name="limo">The limo for this player.</param>
        /// <param name="spriteColor">The color of this player's sprite.</param>
        /// <param name="ai">The AI for this player.</param>
        public Player(string guid, string name, string school, string language, Image avatar, Limo limo, Color spriteColor, IPlayerAI ai)
        {
            Guid = guid;
            Name = name;
            School = school.Length <= 11 ? school : school.Substring(0, 11);
            Language = language;
            Avatar = avatar;
            Limo = limo;
            passengerDeliveredPoints = 0;
            SpriteColor = spriteColor;
            TransparentSpriteColor = Color.FromArgb(96, spriteColor.R, spriteColor.G, spriteColor.B);
            this.ai = ai;
            IsConnected = true;

            PassengersDelivered = new List<Passenger>();
            PickUp = new List<Passenger>();
            Scoreboard = new List<float>();
        }
Example #2
0
 public void EnterCar(Limo limo)
 {
     Start = Lobby;
     Lobby = null;
     Car = limo;
 }
Example #3
0
 public void DebugAssign(Limo limo)
 {
     if (Start == null)
         Start = Lobby;
     Lobby = null;
     Car = limo;
 }