*More work on vehicle.

--HG--
branch : trunk
This commit is contained in:
megamage
2009-04-21 13:36:34 -05:00
parent 4e1143c990
commit b154137401
3 changed files with 39 additions and 11 deletions
+1 -6
View File
@@ -52,12 +52,7 @@ class Vehicle : public Creature
VehicleEntry const *GetVehicleInfo() { return m_vehicleInfo; }
void SetVehicleId(uint32 vehicleid);
bool HasEmptySeat(int8 seatNum) const
{
SeatMap::const_iterator seat = m_Seats.find(seatNum);
if(seat == m_Seats.end()) return false;
return !seat->second.passenger;
}
Vehicle* HasEmptySeat(int8 seatNum) const;
bool AddPassenger(Unit *passenger, int8 seatNum = -1);
void RemovePassenger(Unit *passenger);
void Dismiss();