Example #1
0
        private void PaintPassengers(Graphics g)
        {
            List <Passenger> CopyOfListOfAllPeopleWhoNeedAnimation = new List <Passenger>(MyBuilding.ListOfAllPeopleWhoNeedAnimation);

            foreach (Passenger PassengerToPaint in CopyOfListOfAllPeopleWhoNeedAnimation)
            {
                if ((PassengerToPaint != null) && (PassengerToPaint.GetPassengerVisibility()))
                {
                    g.DrawImage(PassengerToPaint.GetCurrentFrame(), PassengerToPaint.PassengerPosition.X, PassengerToPaint.PassengerPosition.Y + 26, 32, 64); // (35, 75) Y + 15, because passenger is 15 pixels lower than elevator
                }
            }
        }
Example #2
0
        private void PaintPassengers(Graphics g)
        {
            List <Passenger> CopyOfListOfAllPeopleWhoNeedAnimation = new List <Passenger>(MyBuilding.ListOfAllPeopleWhoNeedAnimation);

            foreach (Passenger PassengerToPaint in CopyOfListOfAllPeopleWhoNeedAnimation)
            {
                if ((PassengerToPaint != null) && (PassengerToPaint.GetPassengerVisibility()))
                {
                    g.DrawImage(PassengerToPaint.GetCurrentFrame(), PassengerToPaint.PassengerPosition.X, PassengerToPaint.PassengerPosition.Y + 15, 35, 75);
                }
            }
        }