Exemplo n.º 1
0
 protected Hierarchy(Azul.Color colColor, GameObject.Name typeName, Index index = Index.Index_Null)
     : base(typeName, SpriteEnum.Null, index, new Azul.Color(0f, 0f, 0f), colColor, 0.0f, 0.0f)
 {
     this.type = typeName;
     this.index = index;
     this.sprite = new ProxySprite(SpriteEnum.Null, index, 0.0f, 0.0f);
 }
Exemplo n.º 2
0
        //----------------------------------------------------------------------
        // Constructors / Destructor
        //----------------------------------------------------------------------

        protected GameObject(GameObject.Name gameName, Sprite.Name spriteName)
        {
            this.name             = gameName;
            this.x                = 0.0f;
            this.y                = 0.0f;
            this.pSpriteProxy     = new SpriteProxy(spriteName);
            this.pCollisionObject = new CollisionObject(this.pSpriteProxy);
        }
Exemplo n.º 3
0
 public Missile(GameObject.Name name, GameSprite.Name spriteName, float posX, float posY)
     : base(name, spriteName)
 {
     this.x      = posX;
     this.y      = posY;
     this.enable = false;
     this.delta  = 10.0f;
 }
        public OrangeSaucer(GameObject.Name name, GameSprite.Name spriteName, float posX, float posY)
            : base(name, spriteName, posX, posY)
        {
            this.x = posX;
            this.y = posY;

            this.delta = 0.0f;
        }
Exemplo n.º 5
0
        //---------------------------------------------------------
        // Constructor
        //---------------------------------------------------------
        public WallGroup(GameObject.Name name, GameSprite.Name spriteName, float posX, float posY)
            : base(name, spriteName)
        {
            this.x = posX;
            this.y = posY;

            this.poCollisionObject.pCollisionSprite.setLineColor(0, 0, 1);
        }
Exemplo n.º 6
0
        //---------------------------------------------------------------------------------------------------------
        // Constructor
        //---------------------------------------------------------------------------------------------------------
        public AlienColumn(GameObject.Name gameObjName, GameSprite.Name spriteName, float posX, float posY)
            : base(gameObjName, spriteName)
        {
            this.x = posX;
            this.y = posY;

            this.poCollisionObject.pCollisionSprite.setLineColor(0.0f, 1.0f, 0.0f);
        }
Exemplo n.º 7
0
        // Data: ---------------


        public ShieldBrick(GameObject.Name name, GameSprite.Name spriteName, int index, float posX, float posY)
            : base(name, spriteName, index, ShieldCategory.Type.ShieldBrick)
        {
            this.x = posX;
            this.y = posY;

            //this.SetCollisionColor(1.0f, 1.0f, 1.0f);
        }
Exemplo n.º 8
0
        public AlienColumn(GameObject.Name name, GameSprite.Name spriteName, float posX, float posY)
            : base(name, spriteName)
        {
            this.x = posX;
            this.y = posY;

            this.poColObj.pColSprite.SetLineColor(0, 0, 1);
        }
Exemplo n.º 9
0
 public UFO(GameObject.Name name, GameSprite.Name spriteName, float posX, float posY)
     : base(name, spriteName)
 {
     this.x       = posX;
     this.y       = posY;
     this.delta   = 1.0f;
     this.pRandom = new Random();
 }
Exemplo n.º 10
0
        public UFORoot(GameObject.Name name, GameSprite.Name spriteName, float posX, float posY)
            : base(name, spriteName)
        {
            this.x = posX;
            this.y = posY;

            this.poColObj.pColSprite.SetLineColor(1, 1, 1);
        }
Exemplo n.º 11
0
 public UFO(GameObject.Name gameObjectname, GameSprite.Name gameSpriteName, float posX, float posY)
     : base(gameObjectname, gameSpriteName)
 {
     this.x = posX;
     this.y = posY;
     this.pProxySprite.pSprite.SetColor(1.0f, 0.0f, 0.0f);
     this.speed = 5.0f;
 }
Exemplo n.º 12
0
        public ShieldBrick(GameObject.Name name, GameSprite.Name spriteName, float posX, float posY)
            : base(name, spriteName)
        {
            this.x = posX;
            this.y = posY;

            this.SetCollisionColor(1.0f, 0.0f, 0.0f);
        }
Exemplo n.º 13
0
        //same concept as the AlienGroup, in my mind,
        //its just a holder, sort of speak, to attach to the GONodeMan
        public ShipRoot(GameObject.Name name, GameSprite.Name spriteName, float posX, float posY)
            : base(name, spriteName)
        {
            this.x = posX;
            this.y = posY;

            this.GetColObject().pColSprite.SetLineColor(1, 0, 0);
        }
Exemplo n.º 14
0
        public Ceiling(GameObject.Name name, Sprite.Name spriteName, BoxSprite.Name boxSpriteName, float posX, float posY, float width, float height)
            : base(name, spriteName, boxSpriteName)
        {
            this.poColObj.poColRect.Set(posX, posY, width, height);

            this.x = posX;
            this.y = posY;
        }
Exemplo n.º 15
0
        public OctopusAlien(GameObject.Name name, GameSprite.Name spriteName, float posX, float posY)
            : base(name, spriteName)
        {
            this.x = posX;
            this.y = posY;

            this.scoreValue = 10;
        }
Exemplo n.º 16
0
 //--------------------------------------------------------------------------------------------
 // Constructor
 //--------------------------------------------------------------------------------------------
 public BumperLeft(GameObject.Name gameObjectname, GameSprite.Name gameSpriteName, float posX, float posY, float width, float height)
     : base(gameObjectname, gameSpriteName)
 {
     this.x = posX;
     this.y = posY;
     this.pColObject.pColRect.Set(posX, posY, width, height);
     this.pColObject.pBoxSprite.SetColor(1.0f, 1.0f, 1.0f);
 }
Exemplo n.º 17
0
        // Data: ---------------


        public WallRoot(GameObject.Name name, GameSprite.Name spriteName, int index, float posX, float posY)
            : base(name, spriteName, index, WallCategory.Type.WallRoot)
        {
            this.x = posX;
            this.y = posY;

            this.poColObj.pColSprite.SetLineColor(1, 1, 1);
        }
Exemplo n.º 18
0
        public WallGroup(GameObject.Name gameObjectname, GameSprite.Name gameSpriteName, float posX, float posY)
            : base(gameObjectname, gameSpriteName)
        {
            this.x = posX;
            this.y = posY;

            this.pColObject.pBoxSprite.SetColor(0.0f, 1.0f, 0.0f, 1.0f);
        }
Exemplo n.º 19
0
 public Bomb(GameObject.Name name, Sprite.Name spriteName, BoxSprite.Name boxSpriteName, float posX, float posY)
     : base(name, spriteName, boxSpriteName)
 {
     this.x      = posX;
     this.y      = posY;
     this.speedY = -5.0f;
     this.pInvaderWhoDroppedMe = null;
 }
Exemplo n.º 20
0
 public UFO(GameObject.Name name, Sprite.Name spriteName, BoxSprite.Name boxSpriteName, float posX, float posY)
     : base(name, spriteName, boxSpriteName)
 {
     this.x      = posX;
     this.y      = posY;
     this.speedX = 2;
     this.value  = 300;
 }
Exemplo n.º 21
0
        public Composite(GameObject.Name name, GameSprite.Name spriteName)
            : base(name, spriteName)
        {
            this.poHead = null;
            this.poLast = null;

            this.holder = Container.COMPOSITE;
        }
Exemplo n.º 22
0
        //----------------------------------------------------------------------------------
        // Data
        //----------------------------------------------------------------------------------



        //----------------------------------------------------------------------------------
        // Constructor
        //----------------------------------------------------------------------------------
        public ShieldColumn(GameObject.Name name, GameSprite.Name spriteName, float posX, float posY)
            : base(name, spriteName)
        {
            this.x = posX;
            this.y = posY;
            // Column outline color
            this.poCollObj.pCollSprite.SetLineColor(0.0f, 1.0f, 1.0f);
        }
Exemplo n.º 23
0
        //----------------------------------------------------------------------------------
        // Data
        //----------------------------------------------------------------------------------


        //----------------------------------------------------------------------------------
        // Constructor
        //----------------------------------------------------------------------------------
        public AlienColumn(GameObject.Name gameObjName, GameSprite.Name gameSpriteName, float posX, float posY)
            : base(gameObjName, gameSpriteName)
        {
            this.x = posX;
            this.y = posY;
            // column outline color
            this.poCollObj.pCollSprite.SetLineColor(0.0f, 0.0f, 1.0f);
        }
Exemplo n.º 24
0
        //----------------------------------------------------------------------------------
        // Data
        //----------------------------------------------------------------------------------


        //----------------------------------------------------------------------------------
        // Constructor
        //----------------------------------------------------------------------------------
        public WallLeft(GameObject.Name gameName, GameSprite.Name spriteName, float px, float py, float width, float height)
            : base(gameName, spriteName, WallCategory.Type.Left)
        {
            this.x = px;
            this.y = py;
            this.poCollObj.pCollSprite.SetLineColor(0.0f, 0.7f, 1.0f);
            this.poCollObj.poColRect.Set(px, py, width, height);
        }
Exemplo n.º 25
0
 public Composite(GameObject.Name gameName, GameSprite.Name spriteName)
     : base(gameName, spriteName)
 {
     this.holder = Container.COMPOSITE;
     this.poHead = null;
     this.poLast = null;
     //Debug.Write(" creating--> ");
     //this.DumpNode();
 }
Exemplo n.º 26
0
 //----------------------------------------------------------------------------------
 // Constructor
 //----------------------------------------------------------------------------------
 public AlienGO(GameObject.Name gameName, GameSprite.Name spriteName, int points, float x, float y)
     : base(gameName, spriteName)
 {
     this.x      = x;
     this.y      = y;
     this.delta  = 1.0f;
     this.points = points;
     //this.pExplosion = null;
 }
Exemplo n.º 27
0
 public AlienGO(GameObject.Name gameName, GameSprite.Name spriteName, GameSprite.Name expSpriteName, int points, float x, float y)
     : base(gameName, spriteName)
 {
     this.x          = x;
     this.y          = y;
     this.delta      = 1.0f;
     this.points     = points;
     this.pExplosion = ProxySpriteManager.Add(expSpriteName);
 }
Exemplo n.º 28
0
 public ExplosionObserver(ExplosionFactory factory, GameObject.Name pGOname, GameSprite.Name pGSname, ExplosionGroup container, int p)
 {
     this.pGameObj  = null;
     this.factory   = factory;
     this.pGOname   = pGOname;
     this.pGSname   = pGSname;
     this.container = container;
     this.p         = p;
 }
Exemplo n.º 29
0
        public UFO(GameObject.Name name, GameSprite.Name spriteName, float posX, float posY)
            : base(name, spriteName)
        {
            this.x = posX;
            this.y = posY;

            this.pBomb = null;
            //this.bSndToggle = true;
        }
Exemplo n.º 30
0
        public CrabGO(GameObject.Name name, GameSprite.Name spriteName, float posX, float posY)
            : base(name, spriteName)
        {
            this.x = posX;
            this.y = posY;

            this.FirstPosX = posX;
            this.FirstPosY = posY;
        }
Exemplo n.º 31
0
        public WallBottom(GameSprite.Name spriteName, GameObject.Name name, float posX, float posY, float width = 1, float height = 1) : base(spriteName, name)
        {
            this.pCollosionObject.poCollisionRect.Set(posX, posY, width, height);

            this.x = posX;
            this.y = posY;

            this.pCollosionObject.pCollsionBoxSprite.SetLineColor(1, 1, 0);
        }
Exemplo n.º 32
0
 public void set(GameObject gObj)
 {
     go = gObj;
     name = (GameObject.Name)go.getName();
     index = go.getIndex();
 }
Exemplo n.º 33
0
 public GameObjectNode()
 {
     go = null;
     name = GameObject.Name.Not_Initialized;
     index = Index.Index_Null;
 }
Exemplo n.º 34
0
 public SpawnBomb(GameObject.Name obj, Index index = Index.Index_Null)
 {
     name = obj;
     this.index = index;
     alienTree = GameObjectManager.find(name, index);
 }
Exemplo n.º 35
0
 public SpawnBomb()
 {
     name = GameObject.Name.Not_Initialized;
     index = Index.Index_Null;
     alienTree = null;
 }
Exemplo n.º 36
0
 public void set(GridNode gridNode, GameObject.Name name, Index index = Index.Index_Null)
 {
     this.gridRoot = gridNode;
     this.name = name;
     this.index = index;
 }
Exemplo n.º 37
0
 public Movement()
 {
     this.gridRoot = (GridNode)GameObjectManager.find(GameObject.Name.Grid);
     this.name = (GameObject.Name)gridRoot.getName();
     this.index = gridRoot.getIndex();
 }