Panda3D
 All Classes Functions Variables Enumerations
eggBin.cxx
00001 // Filename: eggBin.cxx
00002 // Created by:  drose (21Jan99)
00003 //
00004 ////////////////////////////////////////////////////////////////////
00005 //
00006 // PANDA 3D SOFTWARE
00007 // Copyright (c) Carnegie Mellon University.  All rights reserved.
00008 //
00009 // All use of this software is subject to the terms of the revised BSD
00010 // license.  You should have received a copy of this license along
00011 // with this source code in a file named "LICENSE."
00012 //
00013 ////////////////////////////////////////////////////////////////////
00014 
00015 #include "eggBin.h"
00016 
00017 
00018 TypeHandle EggBin::_type_handle;
00019 
00020 
00021 ////////////////////////////////////////////////////////////////////
00022 //     Function: EggBin::Constructor
00023 //       Access: Public
00024 //  Description:
00025 ////////////////////////////////////////////////////////////////////
00026 EggBin::
00027 EggBin(const string &name) : EggGroup(name) {
00028   _bin_number = 0;
00029 }
00030 
00031 
00032 ////////////////////////////////////////////////////////////////////
00033 //     Function: EggBin::EggGroup copy constructor
00034 //       Access: Public
00035 //  Description:
00036 ////////////////////////////////////////////////////////////////////
00037 EggBin::
00038 EggBin(const EggGroup &copy) : EggGroup(copy) {
00039   _bin_number = 0;
00040 }
00041 
00042 
00043 ////////////////////////////////////////////////////////////////////
00044 //     Function: EggBin::Copy constructor
00045 //       Access: Public
00046 //  Description:
00047 ////////////////////////////////////////////////////////////////////
00048 EggBin::
00049 EggBin(const EggBin &copy) : EggGroup(copy), _bin_number(copy._bin_number) {
00050 }
00051 
00052 
00053 
00054 ////////////////////////////////////////////////////////////////////
00055 //     Function: EggBin::set_bin_number
00056 //       Access: Public
00057 //  Description:
00058 ////////////////////////////////////////////////////////////////////
00059 void EggBin::
00060 set_bin_number(int bin_number) {
00061   _bin_number = bin_number;
00062 }
00063 
00064 ////////////////////////////////////////////////////////////////////
00065 //     Function: EggBin::get_bin_number
00066 //       Access: Public
00067 //  Description:
00068 ////////////////////////////////////////////////////////////////////
00069 int EggBin::
00070 get_bin_number() const {
00071   return _bin_number;
00072 }
 All Classes Functions Variables Enumerations