Exemple #1
0
 public GameLayer(CCSize screenSize, CCClipMode clipmode)
     : base(screenSize, clipmode)
 {
     this.screenSize = screenSize;
     Init ();
     Schedule (RunGameLogic);
 }
Exemple #2
0
 public CCLayer(CCCamera camera, CCClipMode clipMode) : base()
 {
     ChildClippingMode            = clipMode;
     IgnoreAnchorPointForPosition = true;
     AnchorPoint = CCPoint.AnchorMiddle;
     Camera      = camera;
 }
Exemple #3
0
        public CCLayer(CCCameraProjection cameraProjection, CCClipMode clipMode = CCClipMode.None)
            : base()
        {
            ChildClippingMode            = clipMode;
            IgnoreAnchorPointForPosition = true;
            AnchorPoint = CCPoint.AnchorMiddle;

            initCameraProjection = cameraProjection;
        }
Exemple #4
0
        public CCLayer(CCCameraProjection cameraProjection, CCClipMode clipMode = CCClipMode.None)
            : base()
        {
            beforeDrawCommand = new CCCustomCommand(BeforeDraw);
            afterDrawCommand  = new CCCustomCommand(AfterDraw);

            ChildClippingMode            = clipMode;
            IgnoreAnchorPointForPosition = true;
            AnchorPoint = CCPoint.AnchorMiddle;

            initCameraProjection = cameraProjection;
        }
Exemple #5
0
 public CCLayer(CCClipMode clipMode)
 {
     m_childClippingMode = clipMode;
     AnchorPoint = new CCPoint(0.5f, 0.5f);
     m_bIgnoreAnchorPointForPosition = true;
     CCDirector director = CCDirector.SharedDirector;
     if (director != null)
     {
         ContentSize = director.WinSize;
     }
     Init();
 }
Exemple #6
0
        public CCLayer(CCClipMode clipMode)
        {
            m_childClippingMode             = clipMode;
            AnchorPoint                     = new CCPoint(0.5f, 0.5f);
            m_bIgnoreAnchorPointForPosition = true;
            CCDirector director = CCDirector.SharedDirector;

            if (director != null)
            {
                ContentSize = director.WinSize;
            }
            Init();
        }
Exemple #7
0
 public CCLayer(CCClipMode clipMode)
 {
     m_childClippingMode = clipMode;
     AnchorPoint = new CCPoint(0.5f, 0.5f);
     m_bIgnoreAnchorPointForPosition = true;
     CCDirector director = CCDirector.SharedDirector;
     if (director != null)
     {
         ContentSize = director.WinSize;
     }
     m_OnGamePadButtonUpdateDelegate = new CCGamePadButtonDelegate(OnGamePadButtonUpdate);
     m_OnGamePadConnectionUpdateDelegate = new CCGamePadConnectionDelegate(OnGamePadConnectionUpdate);
     m_OnGamePadDPadUpdateDelegate = new CCGamePadDPadDelegate(OnGamePadDPadUpdate);
     m_OnGamePadStickUpdateDelegate = new CCGamePadStickUpdateDelegate(OnGamePadStickUpdate);
     m_OnGamePadTriggerUpdateDelegate = new CCGamePadTriggerDelegate(OnGamePadTriggerUpdate);
     Init();
 }
Exemple #8
0
        public CCLayer(CCClipMode clipMode)
        {
            m_childClippingMode             = clipMode;
            AnchorPoint                     = new CCPoint(0.5f, 0.5f);
            m_bIgnoreAnchorPointForPosition = true;
            CCDirector director = CCDirector.SharedDirector;

            if (director != null)
            {
                ContentSize = director.WinSize;
            }
            m_OnGamePadButtonUpdateDelegate     = new CCGamePadButtonDelegate(OnGamePadButtonUpdate);
            m_OnGamePadConnectionUpdateDelegate = new CCGamePadConnectionDelegate(OnGamePadConnectionUpdate);
            m_OnGamePadDPadUpdateDelegate       = new CCGamePadDPadDelegate(OnGamePadDPadUpdate);
            m_OnGamePadStickUpdateDelegate      = new CCGamePadStickUpdateDelegate(OnGamePadStickUpdate);
            m_OnGamePadTriggerUpdateDelegate    = new CCGamePadTriggerDelegate(OnGamePadTriggerUpdate);
            Init();
        }
Exemple #9
0
        public CCLayer(CCCameraProjection cameraProjection, CCClipMode clipMode = CCClipMode.None)
            : base()
        {
            ChildClippingMode = clipMode;
            IgnoreAnchorPointForPosition = true;
            AnchorPoint = CCPoint.AnchorMiddle;

            initCameraProjection = cameraProjection;
        }
Exemple #10
0
 public CCLayer(CCCamera camera, CCClipMode clipMode = CCClipMode.None)
     : this(camera.Projection, clipMode)
 {
     Camera = camera;
 }
Exemple #11
0
 public CCLayer(CCSize visibleBoundsDimensions,
                CCCameraProjection cameraProjection,
                CCClipMode clipMode = CCClipMode.None)
     : this(new CCCamera(cameraProjection, visibleBoundsDimensions), clipMode)
 {
 }
Exemple #12
0
 public CCLayer(CCSize visibleBoundsDimensions,
                CCClipMode clipMode = CCClipMode.None)
     : this(visibleBoundsDimensions, DefaultCameraProjection, clipMode)
 {
 }
Exemple #13
0
 public CCLayer(CCCamera camera, CCClipMode clipMode = CCClipMode.None) 
     : this(camera.Projection, clipMode)
 {
     Camera = camera;
 }
Exemple #14
0
        public CCLayer(CCCamera camera, CCClipMode clipMode) : base()
        {
            ChildClippingMode = clipMode;
            IgnoreAnchorPointForPosition = true;
			AnchorPoint = CCPoint.AnchorMiddle;
            Camera = camera;
        }
Exemple #15
0
 public CCLayer(CCSize visibleBoundsDimensions, CCClipMode clipMode = CCClipMode.None)
     : this(new CCCamera(visibleBoundsDimensions), clipMode)
 {  }
Exemple #16
0
 public CCLayer(CCSize visibleBoundsDimensions, 
     CCClipMode clipMode = CCClipMode.None)
     : this(visibleBoundsDimensions, DefaultCameraProjection, clipMode)
 {  
 }
Exemple #17
0
 public GameLayer(CCSize screenSize, CCClipMode clipmode) : base(screenSize, clipmode)
 {
     this.screenSize = screenSize;
     Init();
     Schedule(RunGameLogic);
 }
Exemple #18
0
        public CCLayer(CCCameraProjection cameraProjection, CCClipMode clipMode = CCClipMode.None)
            : base()
        {
            beforeDrawCommand = new CCCustomCommand(BeforeDraw);
            afterDrawCommand = new CCCustomCommand(AfterDraw);

            ChildClippingMode = clipMode;
            IgnoreAnchorPointForPosition = true;
            AnchorPoint = CCPoint.AnchorMiddle;

            initCameraProjection = cameraProjection;
        }