63 lines
2.2 KiB
Plaintext
63 lines
2.2 KiB
Plaintext
// Filename: pStatClientVersion.I
|
|
// Created by: drose (21May01)
|
|
//
|
|
////////////////////////////////////////////////////////////////////
|
|
//
|
|
// PANDA 3D SOFTWARE
|
|
// Copyright (c) 2001, Disney Enterprises, Inc. All rights reserved
|
|
//
|
|
// All use of this software is subject to the terms of the Panda 3d
|
|
// Software license. You should have received a copy of this license
|
|
// along with this source code; you will also find a current copy of
|
|
// the license at http://www.panda3d.org/license.txt .
|
|
//
|
|
// To contact the maintainers of this program write to
|
|
// panda3d@yahoogroups.com .
|
|
//
|
|
////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
////////////////////////////////////////////////////////////////////
|
|
// Function: PStatClientVersion::get_major_version
|
|
// Access: Public
|
|
// Description:
|
|
////////////////////////////////////////////////////////////////////
|
|
INLINE int PStatClientVersion::
|
|
get_major_version() const {
|
|
return _major_version;
|
|
}
|
|
|
|
////////////////////////////////////////////////////////////////////
|
|
// Function: PStatClientVersion::get_minor_version
|
|
// Access: Public
|
|
// Description:
|
|
////////////////////////////////////////////////////////////////////
|
|
INLINE int PStatClientVersion::
|
|
get_minor_version() const {
|
|
return _minor_version;
|
|
}
|
|
|
|
////////////////////////////////////////////////////////////////////
|
|
// Function: PStatClientVersion::set_version
|
|
// Access: Public
|
|
// Description:
|
|
////////////////////////////////////////////////////////////////////
|
|
INLINE void PStatClientVersion::
|
|
set_version(int major_version, int minor_version) {
|
|
_major_version = major_version;
|
|
_minor_version = minor_version;
|
|
}
|
|
|
|
////////////////////////////////////////////////////////////////////
|
|
// Function: PStatClientVersion::is_at_least
|
|
// Access: Public
|
|
// Description: Returns true if the client version is at least the
|
|
// indicated major/minor version number, false
|
|
// otherwise.
|
|
////////////////////////////////////////////////////////////////////
|
|
INLINE bool PStatClientVersion::
|
|
is_at_least(int major_version, int minor_version) const {
|
|
return (_major_version > major_version ||
|
|
(_major_version == major_version && _minor_version >= minor_version));
|
|
}
|