open_toontown_panda3d/pandatool/src/egg-optchar/eggOptcharUserData.I

100 lines
3.1 KiB
Plaintext

// Filename: eggOptcharUserData.I
// Created by: drose (18Jul03)
//
////////////////////////////////////////////////////////////////////
//
// PANDA 3D SOFTWARE
// Copyright (c) 2001 - 2004, 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://etc.cmu.edu/panda3d/docs/license/ .
//
// To contact the maintainers of this program write to
// panda3d-general@lists.sourceforge.net .
//
////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////
// Function: EggOptcharUserData::Constructor
// Access: Public
// Description:
////////////////////////////////////////////////////////////////////
INLINE EggOptcharUserData::
EggOptcharUserData() {
_flags = 0;
_static_mat = LMatrix4d::ident_mat();
_static_value = 0.0;
}
////////////////////////////////////////////////////////////////////
// Function: EggOptcharUserData::Copy constructor
// Access: Public
// Description:
////////////////////////////////////////////////////////////////////
INLINE EggOptcharUserData::
EggOptcharUserData(const EggOptcharUserData &copy) :
EggUserData(copy),
_flags(copy._flags),
_static_mat(copy._static_mat),
_static_value(copy._static_value)
{
}
////////////////////////////////////////////////////////////////////
// Function: EggOptcharUserData::Copy assignment operator
// Access: Public
// Description:
////////////////////////////////////////////////////////////////////
INLINE void EggOptcharUserData::
operator = (const EggOptcharUserData &copy) {
EggUserData::operator = (copy);
_flags = copy._flags;
_static_mat = copy._static_mat;
_static_value = copy._static_value;
}
////////////////////////////////////////////////////////////////////
// Function: EggOptcharUserData::is_static
// Access: Public
// Description:
////////////////////////////////////////////////////////////////////
INLINE bool EggOptcharUserData::
is_static() const {
return (_flags & F_static) != 0;
}
////////////////////////////////////////////////////////////////////
// Function: EggOptcharUserData::is_identity
// Access: Public
// Description:
////////////////////////////////////////////////////////////////////
INLINE bool EggOptcharUserData::
is_identity() const {
return (_flags & F_identity) != 0;
}
////////////////////////////////////////////////////////////////////
// Function: EggOptcharUserData::is_empty
// Access: Public
// Description:
////////////////////////////////////////////////////////////////////
INLINE bool EggOptcharUserData::
is_empty() const {
return (_flags & F_empty) != 0;
}
////////////////////////////////////////////////////////////////////
// Function: EggOptcharUserData::is_top
// Access: Public
// Description:
////////////////////////////////////////////////////////////////////
INLINE bool EggOptcharUserData::
is_top() const {
return (_flags & F_top) != 0;
}