00001 // Filename: pStatClientVersion.I 00002 // Created by: drose (21May01) 00003 // 00004 //////////////////////////////////////////////////////////////////// 00005 // 00006 // PANDA 3D SOFTWARE 00007 // Copyright (c) 2001, Disney Enterprises, Inc. All rights reserved 00008 // 00009 // All use of this software is subject to the terms of the Panda 3d 00010 // Software license. You should have received a copy of this license 00011 // along with this source code; you will also find a current copy of 00012 // the license at http://www.panda3d.org/license.txt . 00013 // 00014 // To contact the maintainers of this program write to 00015 // panda3d@yahoogroups.com . 00016 // 00017 //////////////////////////////////////////////////////////////////// 00018 00019 00020 //////////////////////////////////////////////////////////////////// 00021 // Function: PStatClientVersion::get_major_version 00022 // Access: Public 00023 // Description: 00024 //////////////////////////////////////////////////////////////////// 00025 INLINE int PStatClientVersion:: 00026 get_major_version() const { 00027 return _major_version; 00028 } 00029 00030 //////////////////////////////////////////////////////////////////// 00031 // Function: PStatClientVersion::get_minor_version 00032 // Access: Public 00033 // Description: 00034 //////////////////////////////////////////////////////////////////// 00035 INLINE int PStatClientVersion:: 00036 get_minor_version() const { 00037 return _minor_version; 00038 } 00039 00040 //////////////////////////////////////////////////////////////////// 00041 // Function: PStatClientVersion::set_version 00042 // Access: Public 00043 // Description: 00044 //////////////////////////////////////////////////////////////////// 00045 INLINE void PStatClientVersion:: 00046 set_version(int major_version, int minor_version) { 00047 _major_version = major_version; 00048 _minor_version = minor_version; 00049 } 00050 00051 //////////////////////////////////////////////////////////////////// 00052 // Function: PStatClientVersion::is_at_least 00053 // Access: Public 00054 // Description: Returns true if the client version is at least the 00055 // indicated major/minor version number, false 00056 // otherwise. 00057 //////////////////////////////////////////////////////////////////// 00058 INLINE bool PStatClientVersion:: 00059 is_at_least(int major_version, int minor_version) const { 00060 return (_major_version > major_version || 00061 (_major_version == major_version && _minor_version >= minor_version)); 00062 }