ActivationFactory::ActivationFactory() : ConstructionFactory<Activation*>("Activation") { registerConstructor("", fl::null); registerConstructor(First().className(), &(First::constructor)); registerConstructor(General().className(), &(General::constructor)); registerConstructor(Highest().className(), &(Highest::constructor)); registerConstructor(Last().className(), &(Last::constructor)); registerConstructor(Lowest().className(), &(Lowest::constructor)); registerConstructor(Proportional().className(), &(Proportional::constructor)); registerConstructor(Threshold().className(), &(Threshold::constructor)); }
OptionsFormDialogBox::OptionsFormDialogBox(FXComposite *parent) : FXDialogBox(parent, "Sim Options", DECOR_TITLE | DECOR_BORDER) { FXMatrix *LayoutMatrix = new FXMatrix(this, 1, MATRIX_BY_COLUMNS | LAYOUT_FILL_X | LAYOUT_FILL_Y | LAYOUT_FILL_ROW | LAYOUT_FILL_COLUMN, 0,0,0,0, 0,0,0,0); FXTabBook *tabbook=new FXTabBook(LayoutMatrix,NULL,0, LAYOUT_FILL_X | LAYOUT_FILL_Y | LAYOUT_FILL_ROW | LAYOUT_FILL_COLUMN); Species(tabbook); General(tabbook); Veggy(tabbook); PhysicsAndCosts(tabbook); CostsOptions(tabbook); Mutations(tabbook); //ReststartAndL(tabbook); //InternetOptions(tabbook); //Recording(tabbook); BottomToolbar(LayoutMatrix); }
CPlaytomicResponsePtr CData::Playtime( int day,int month, int year ) { return General("playtime",day,month,year); }
CPlaytomicResponsePtr CData::Playtime( int month/*=0*/, int year/*=0*/ ) { return General("playtime",0,month,year); }
CPlaytomicResponsePtr CData::Views( int month /*= 0*/, int year/*= 0*/ ) { return General("views",0,month,year); }
CPlaytomicResponsePtr CData::Views( int day, int month, int year ) { return General("views",day,month,year); }