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); }
//---------------------------------------------------------------------- // 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); }
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; }
//--------------------------------------------------------- // 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); }
//--------------------------------------------------------------------------------------------------------- // 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); }
// 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); }
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); }
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(); }
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); }
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; }
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); }
//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); }
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; }
public OctopusAlien(GameObject.Name name, GameSprite.Name spriteName, float posX, float posY) : base(name, spriteName) { this.x = posX; this.y = posY; this.scoreValue = 10; }
//-------------------------------------------------------------------------------------------- // 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); }
// 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); }
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); }
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; }
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; }
public Composite(GameObject.Name name, GameSprite.Name spriteName) : base(name, spriteName) { this.poHead = null; this.poLast = null; this.holder = Container.COMPOSITE; }
//---------------------------------------------------------------------------------- // 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); }
//---------------------------------------------------------------------------------- // 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); }
//---------------------------------------------------------------------------------- // 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); }
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(); }
//---------------------------------------------------------------------------------- // 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; }
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); }
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; }
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; }
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; }
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); }
public void set(GameObject gObj) { go = gObj; name = (GameObject.Name)go.getName(); index = go.getIndex(); }
public GameObjectNode() { go = null; name = GameObject.Name.Not_Initialized; index = Index.Index_Null; }
public SpawnBomb(GameObject.Name obj, Index index = Index.Index_Null) { name = obj; this.index = index; alienTree = GameObjectManager.find(name, index); }
public SpawnBomb() { name = GameObject.Name.Not_Initialized; index = Index.Index_Null; alienTree = null; }
public void set(GridNode gridNode, GameObject.Name name, Index index = Index.Index_Null) { this.gridRoot = gridNode; this.name = name; this.index = index; }
public Movement() { this.gridRoot = (GridNode)GameObjectManager.find(GameObject.Name.Grid); this.name = (GameObject.Name)gridRoot.getName(); this.index = gridRoot.getIndex(); }