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

            initCameraProjection = cameraProjection;
        }
Ejemplo n.º 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;
        }
Ejemplo n.º 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();
 }
Ejemplo n.º 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();
        }
Ejemplo n.º 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();
 }
Ejemplo n.º 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();
        }
Ejemplo n.º 9
0
        public CCLayer(CCCameraProjection cameraProjection, CCClipMode clipMode = CCClipMode.None)
            : base()
        {
            ChildClippingMode = clipMode;
            IgnoreAnchorPointForPosition = true;
            AnchorPoint = CCPoint.AnchorMiddle;

            initCameraProjection = cameraProjection;
        }
Ejemplo n.º 10
0
 public CCLayer(CCCamera camera, CCClipMode clipMode = CCClipMode.None)
     : this(camera.Projection, clipMode)
 {
     Camera = camera;
 }
Ejemplo n.º 11
0
 public CCLayer(CCSize visibleBoundsDimensions,
                CCCameraProjection cameraProjection,
                CCClipMode clipMode = CCClipMode.None)
     : this(new CCCamera(cameraProjection, visibleBoundsDimensions), clipMode)
 {
 }
Ejemplo n.º 12
0
 public CCLayer(CCSize visibleBoundsDimensions,
                CCClipMode clipMode = CCClipMode.None)
     : this(visibleBoundsDimensions, DefaultCameraProjection, clipMode)
 {
 }
Ejemplo n.º 13
0
 public CCLayer(CCCamera camera, CCClipMode clipMode = CCClipMode.None) 
     : this(camera.Projection, clipMode)
 {
     Camera = camera;
 }
Ejemplo n.º 14
0
        public CCLayer(CCCamera camera, CCClipMode clipMode) : base()
        {
            ChildClippingMode = clipMode;
            IgnoreAnchorPointForPosition = true;
			AnchorPoint = CCPoint.AnchorMiddle;
            Camera = camera;
        }
Ejemplo n.º 15
0
 public CCLayer(CCSize visibleBoundsDimensions, CCClipMode clipMode = CCClipMode.None)
     : this(new CCCamera(visibleBoundsDimensions), clipMode)
 {  }
Ejemplo n.º 16
0
 public CCLayer(CCSize visibleBoundsDimensions, 
     CCClipMode clipMode = CCClipMode.None)
     : this(visibleBoundsDimensions, DefaultCameraProjection, clipMode)
 {  
 }
Ejemplo n.º 17
0
 public GameLayer(CCSize screenSize, CCClipMode clipmode) : base(screenSize, clipmode)
 {
     this.screenSize = screenSize;
     Init();
     Schedule(RunGameLogic);
 }
Ejemplo n.º 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;
        }