//===========================================================================// // File: cmpnnt.cc // // Project: MUNGA Brick: Entity // // Contents: // //---------------------------------------------------------------------------// // Date Who Modification // // -------- --- ---------------------------------------------------------- // // 12/14/94 ECH Initial coding. // //---------------------------------------------------------------------------// // Copyright (C) 1994-1995, Virtual World Entertainment, Inc. // // All Rights reserved worldwide // // This unpublished sourcecode is PROPRIETARY and CONFIDENTIAL // //===========================================================================// #include "AdeptHeaders.hpp" #include "Adder.hpp" //############################################################################# //########################## AdderChannel ##############################3 //############################################################################# //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ // void AdderOf::InitializeClass() { Verify(!DefaultData); DefaultData = new ClassData( AdderOfScalarClassID, "Adept::AdderOfScalar", ChannelOf::DefaultData, 0, NULL ); Register_Object(DefaultData); } //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ // void AdderOf::Execute() { Check_Object(this); channelOutput = 0.0f; for (int i=0; i *channel = inputChannels[i]; Check_Object(channel); channelOutput += channel->ReadChannel(); } NotifyDependantsOfChange(); }