public CubeWrapper(EColiTest app, Cube cube)
        {
            mApp = app;
            mCube = cube;
            mCube.userData = this; 

            //Ensures that whatever color first appears on the cube is the color instance variable
            if (mCubeType == 0)
            {
                if (mApp.mImageNames[colorIndex].Contains("red")) this.color = "red";
                if (mApp.mImageNames[colorIndex].Contains("blue")) this.color = "blue";
                if (mApp.mImageNames[colorIndex].Contains("yellow")) this.color = "yellow";
            }

            mApp.whitePlasmidController.mCube = this.mCube;
            
            eColiColor = "white";
            plasmidColor = "white";

            //Adding the event handlers
            mCube.ButtonEvent += OnButton;
            mCube.TiltEvent += OnTilt;
            mCube.FlipEvent += OnFlip;

        }
Example #2
0
 public BluePlasmidController(EColiTest app)
 {
     //mCube = cube;
     mApp           = app;
     blueAnimation  = mApp.mBEcoliNames;
     bluePlasmidImg = mApp.mBEcoliNames[0];
     bIndex         = 0;
 }
Example #3
0
 public PlasmidController(EColiTest app)
 {
     //mCube = cube;
     mApp            = app;
     whiteAnimation  = mApp.mEcoliNames;
     whitePlasmidImg = mApp.mEcoliNames[0];
     wIndex          = 0;
 }
 public RedPlasmidController(EColiTest app)
 {
     //mCube = cube;
     mApp          = app;
     redAnimation  = mApp.mREcoliNames;
     redPlasmidImg = mApp.mREcoliNames[0];
     rIndex        = 0;
 }
 public PlasmidController(EColiTest app)
 {
     //mCube = cube;
     mApp = app;
     whiteAnimation = mApp.mEcoliNames;
     whitePlasmidImg = mApp.mEcoliNames[0];
     wIndex = 0;
 }
 public YellowPlasmidController(EColiTest app)
 {
     //mCube = cube;
     mApp = app;
     yellowAnimation = mApp.mYEcoliNames;
     yellowPlasmidImg = mApp.mYEcoliNames[0];
     yIndex = 0;
 }
 public BluePlasmidController(EColiTest app)
 {
     //mCube = cube;
     mApp = app;
     blueAnimation = mApp.mBEcoliNames;
     bluePlasmidImg = mApp.mBEcoliNames[0];
     bIndex = 0;
 }
 public RedPlasmidController(EColiTest app)
 {
     //mCube = cube;
     mApp = app;
     redAnimation = mApp.mREcoliNames;
     redPlasmidImg = mApp.mREcoliNames[0];
     rIndex = 0;
 }
 public YellowPlasmidController(EColiTest app)
 {
     //mCube = cube;
     mApp             = app;
     yellowAnimation  = mApp.mYEcoliNames;
     yellowPlasmidImg = mApp.mYEcoliNames[0];
     yIndex           = 0;
 }