Пример #1
0
 public BubbleService(Vector3 positionXNA)
     : base(MathHelperModule.Get2DRectangleForNonRigids(positionXNA,
                                                        StaticData.BubbleDimBubble, StaticData.BubbleDimBubble),
            TextureType.BubbleWithoutCandy)
 {
     this._maxDim            = StaticData.BubbleDimBubble;
     this._minDim            = _maxDim - (10 * this._maxDim / 100);
     this.Id                 = StaticData.EngineManager.BubbleManagerEngine.GetNextServiceId();
     this.PositionXNAInitial = this.PositionXNA;
 }
Пример #2
0
 public Visual2D(Vector3 positionXNA, int width, int height, TextureType textureType)
 {
     this.RectangleArea = MathHelperModule.Get2DRectangleForNonRigids(positionXNA, width, height);
     this.TextureType   = textureType;
 }