public DisappearingBlock(GridBundle aGridBundle, EBlockColor aColor, int aTotalFrames, int aStartFrame)
     : base(aGridBundle)
 {
     myTotalFrames = aTotalFrames;
     myStartFrame  = aStartFrame;
     myColor       = aColor;
 }
 public void Initialize()
 {
     myAttackOrder = new List <int>();
     myGridBundle  = new GridBundle(myPlayerInfo.myPlayerIndex);
     //myGridBehavior = new GridBehavior(myPlayerInfo.myPlayerIndex); //gridcontainer?
     mySprite = new Sprite("curse");
 }
Exemple #3
0
 public AbstractColorBlock(GridBundle aGridBundle)
     : base(aGridBundle)
 {
     if (myColor == EBlockColor.None)
     {
         RandomizeColor();
     }
 }
 public AngryBlock(GridBundle aGridBundle, int aLife, AngryBlockBundle aBundle) : base(aGridBundle)
 {
     myLife   = aLife;
     myBundle = aBundle;
     myBundle.AddBlock(this);
     myColor         = EBlockColor.Blue;
     myTileSetSprite = new SpriteTilesetAngry();
     //myAngryColor = "carrot"; // to be acquired from player choice or characteristics etc
     myTileSetSprite.SetColor(GetColorFromEnum());
 }
Exemple #5
0
 public FrozenBlock(GridBundle aGridBundle)
     : base(aGridBundle)
 {
 }
Exemple #6
0
 public FrozenBlock(GridBundle aGridBundle, EBlockColor aColor)
     : base(aGridBundle)
 {
     myColor = aColor;
 }
Exemple #7
0
 public ColorBlock(GridBundle aGridBundle, FallingBlock aBlock)
     : base(aGridBundle)
 {
     myColor    = aBlock.GetColor();
     myCanChain = aBlock.CanChain;
 }
Exemple #8
0
 public ColorBlock(GridBundle aGridBundle, EBlockColor aColor, bool aCanChain = false)
     : base(aGridBundle)
 {
     myColor = aColor;
 }
Exemple #9
0
 public ColorBlock(GridBundle aGridBundle)
     : base(aGridBundle)
 {
 }
        //protected float myRaisingOffset = 0.0f;

        public AbstractBlock(GridBundle aGridBundle)
        {
            myGridBundle = aGridBundle;
        }
 public EmptyBlock(GridBundle aGridBundle)
     : base(aGridBundle)
 {
     myGridArea = new Rectangle(0, 0, 1, 1);
 }
 public void SetBundle(GridBundle aBundle)
 {
     myGridBundle = aBundle;
 }
 public void OnDestroy()
 {
     myGridBundle = null;
     myAngryBlocks.Clear();
     myFrozenBlocks.Clear();
 }
        // gridbundle?

        public AngryBlockBundle(GridBundle aGridBundle)
        {
            myGridBundle   = aGridBundle;
            myAngryBlocks  = new List <AngryBlock>();
            myFrozenBlocks = new List <FrozenBlock>();
        }
Exemple #15
0
 public FallingBlock(GridBundle aGridBundle, EBlockColor aColor)
     : base(aGridBundle)
 {
     myColor = aColor;
 }