//--------------------------------------------------------------------------- #ifndef restandCellMakerH #define restandCellMakerH //--------------------------------------------------------------------------- class RestandCellMaker; #include "cellMaker.h" #include "restandCell.h" #include "globals.h" class RestandCellMaker : public GrCellMaker { public: RestandCellMaker(float _IAM, float _IASD, float _CTONM, float _CTONSD, float _CTOGM, float _CTOGSD, float _APTOSTDM, float _APTOSTDSD, float _CNTSTDNTSTNDM, float _CNTSTDNTSTNDSD, float _EXHAUSTM, float _EXHAUSTSD, float _RESTANDM, float _RESTANDSD, int _contStEx) { IAM=_IAM; IASD=_IASD; CTONM=_CTONM; CTONSD=_CTONSD; CTOGM=_CTOGM; CTOGSD=_CTOGSD; APTOSTDM=_APTOSTDM; APTOSTDSD=_APTOSTDSD; CNTSTDNTSTNDM=_CNTSTDNTSTNDM; CNTSTDNTSTNDSD=_CNTSTDNTSTNDSD; EXHAUSTM=_EXHAUSTM; EXHAUSTSD=_EXHAUSTSD; RESTANDM=_RESTANDM; RESTANDSD=_RESTANDSD; contStEx=_contStEx; }; virtual pCell newCell(pAuditory pa, int xx,int yy) { return new RestandCell(pa,xx,yy, getGaussPosit(IAM, IASD), getGaussPosit(CTONM, CTONSD), getGaussPosit(CTOGM, CTOGSD), getGaussPosit(APTOSTDM, APTOSTDSD), getGaussPosit(CNTSTDNTSTNDM, CNTSTDNTSTNDSD), getGaussPosit(EXHAUSTM, EXHAUSTSD), (int)getGaussPosit(RESTANDM, RESTANDSD), contStEx ); }; protected: float IAM; float IASD; float CTONM; float CTONSD; float CTOGM; float CTOGSD; float APTOSTDM; float APTOSTDSD; float CNTSTDNTSTNDM; float CNTSTDNTSTNDSD; float EXHAUSTM,EXHAUSTSD,RESTANDM,RESTANDSD; int contStEx; }; #endif