public UFORoot(GameObject.GameObjectName mGameObjectName, Sprite.SpriteName mSpriteName, int index, float mX, float mY, UFO.UFOType ufoType) : base(mGameObjectName, index, mSpriteName, ufoType) { this.x = mX; this.y = mY; this.ufoDeltaX = Unit.ufoDeltaX; // this.cCollisionObj.cSpriteBox.setColor(Unit.spriteBoxColor); }
public Column(GameObject.GameObjectName mGameObjectName, Sprite.SpriteName mSpriteName, int index, float mX, float mY) : base(mGameObjectName, index, mSpriteName) { this.x = mX; this.y = mY; // this.cCollisionObj.cSpriteBox.setColor(Unit.spriteBoxColor); }
//public bool active; public FlippingBomb(GameObject.GameObjectName mGameObjectName, Sprite.SpriteName mSpriteName, int index, float mX, float mY, BombType bombType) : base(mGameObjectName, index, mSpriteName, bombType) { this.x = mX; this.y = mY; this.active = false; // this.cCollisionObj.cSpriteBox.setColor(Unit.spriteBoxColor); }
public WallTop(GameObjectName mGameObjectName, int index, Sprite.SpriteName mSpriteName, float x, float y, float width, float height, Wall.WallType walltype) : base(mGameObjectName, index, mSpriteName, walltype) { this.setCollisionRect(x, y, width, height); this.x = x; this.y = y; this.cCollisionObj.cSpriteBox.setColor(Unit.redColor); }
public void setAll(Sprite.SpriteName mSpriteName, float posX = 0.0f, float posY = 0.0f) { this.cProxySpriteName = ProxySpriteName.SpriteProxy; this.x = posX; this.y = posY; this.rcSprite = (Sprite)SpriteManager.find(mSpriteName); Debug.Assert(rcSprite != null); }
public ProxySprite(Sprite.SpriteName mSpriteName) { this.cProxySpriteName = ProxySpriteName.SpriteProxy; this.x = 0.0f; this.x = 0.0f; this.rcSprite = (Sprite)SpriteManager.find(mSpriteName); Debug.Assert(rcSprite != null); }
public MissileRoot(GameObject.GameObjectName mGameObjectName, Sprite.SpriteName mSpriteName, int index, float mX, float mY, Missile.MissileType missileType) : base(mGameObjectName, index, mSpriteName, missileType) { this.x = mX; this.y = mY; // this.deltaY = 10.0f; this.total = 0.0f; // this.cCollisionObj.cSpriteBox.setColor(Unit.spriteBoxColor); }
public void set(Sprite.SpriteName mSpriteName, int index, float posX, float posY) { this.swapImage(mSpriteName); this.index = index; this.x = posX; this.y = posY; this.death = false; }//public void explode()
public AlienUFO(GameObject.GameObjectName mGameObjectName, Sprite.SpriteName mSpriteName, int index, float mX, float mY, UFO.UFOType ufoType) : base(mGameObjectName, index, mSpriteName, ufoType) { this.deltaX = Unit.ufoDeltaX; this.setX(mX); this.setY(mY); // this.cCollisionObj.cSpriteBox.setColor(Unit.spriteBoxColor); this.launch = false; }
public AlienImageAnimation(Sprite.SpriteName spriteGameName) { cSpriteGame = (Sprite)SpriteManager.find(spriteGameName); Debug.Assert(cSpriteGame != null); cCurrImg = null; cImgList = null; }
public BombRoot(GameObject.GameObjectName mGameObjectName, Sprite.SpriteName mSpriteName, int index, float mX, float mY, BombType bombType) : base(mGameObjectName, index, mSpriteName, bombType) { this.x = mX; this.y = mY; //this.delta = 4.0f; this.delta = Unit.bombDeltaY; // this.cCollisionObj.cSpriteBox.setColor(Unit.spriteBoxColor); }
public StraightMissile(GameObject.GameObjectName mGameObjectName, Sprite.SpriteName mSpriteName, int index, float mX, float mY, Missile.MissileType missileType) : base(mGameObjectName, index, mSpriteName, missileType) { this.x = mX; this.y = mY; this.delta = 20.0f; this.launch = false; // this.cCollisionObj.cSpriteBox.setColor(Unit.spriteBoxColor); // hit = false; }
public CannonShip(GameObject.GameObjectName mGameObjectName, Sprite.SpriteName mSpriteName, int index, float mX, float mY) : base(mGameObjectName, index, mSpriteName) { this.x = mX; this.y = mY; // this.cCollisionObj.cSpriteBox.setColor(Unit.spriteBoxColor); this.delta = Unit.shipDeltaX; this.shipState = null; // hit = false; }
public SpriteBatchNode add(Sprite.SpriteName mName) { SpriteBatchNode nodeAdded = (SpriteBatchNode)this.genericAdd(); Debug.Assert(nodeAdded != null); nodeAdded.setSprite(mName, this); return nodeAdded; }
public void setSprite(Sprite.SpriteName mSpriteName, SpriteBatchNodeManager mSbManager) { Sprite sprite = (Sprite)SpriteManager.find(mSpriteName); Debug.Assert(sprite != null); Debug.Assert(mSbManager != null); this.cSpriteBase = sprite; this.cSBNodeMan = mSbManager; }
//private bool moveY; //private static screenSize; public AlienGrid(GameObject.GameObjectName mGameObjectName, Sprite.SpriteName mSpriteName, int index, float mX, float mY) : base(mGameObjectName, index, mSpriteName) { this.x = mX; this.y = mY; // this.deltaX = 20.0f; // this.deltaY = 40.0f; this.deltaX = Unit.alienDeltaX; this.deltaY = Unit.alienDeltaY; edgeHit = false; // this.cCollisionObj.cSpriteBox.setColor(Unit.spriteBoxColor); }
protected GameObject(GameObjectName mGameObjectName, int index, Sprite.SpriteName mSpriteName) { this.cGameObjectName = mGameObjectName; this.x = 0.0f; this.y = 0.0f; this.index = index; this.cProxySprite = ProxySpriteManager.add(mSpriteName); Debug.Assert(cProxySprite != null); this.cCollisionObj = new CollisionObject(cProxySprite); Debug.Assert(cCollisionObj != null); this.death = false; }
public static ProxySprite add(Sprite.SpriteName mSpriteName) { ProxySpriteManager spriteBoxMInstance = ProxySpriteManager.getSingletonInstance(); Debug.Assert(proxyMInstance != null); ProxySprite nodeAdded = (ProxySprite)proxyMInstance.genericAdd(); Debug.Assert(nodeAdded != null); //set the attributes of the proxy sprite node nodeAdded.setAll(mSpriteName); return(nodeAdded); }
public static Sprite find(Sprite.SpriteName spriteName) { SpriteManager spriteMInstance = SpriteManager.getSingletonInstance(); Debug.Assert(spriteMInstance != null); Sprite pseudoSprite = defSprite; pseudoSprite.setSpriteName(spriteName); Debug.Assert(spriteMInstance != null); Sprite targetSprite = (Sprite)spriteMInstance.genericFind(pseudoSprite); return(targetSprite); }
public static Sprite add(Sprite.SpriteName spriteName, Image.ImageName spriteImageName, float x, float y, float width, float height, Azul.Color azulColor) { SpriteManager spriteMInstance = SpriteManager.getSingletonInstance(); Debug.Assert(spriteMInstance != null); Sprite nodeAdded = (Sprite)spriteMInstance.genericAdd(); Debug.Assert(nodeAdded != null); //set the attributes of the Image node Image image = ImageManager.find(spriteImageName); Debug.Assert(image != null); nodeAdded.setAll(spriteName, image, x, y, width, height, azulColor); return(nodeAdded); }
public Octopus(GameObject.GameObjectName mGameObjectName, Sprite.SpriteName mSpriteName, int index, float mX, float mY) : base(mGameObjectName, index, mSpriteName) { this.setX(mX); this.setY(mY); // this.cCollisionObj.cSpriteBox.setColor(Unit.spriteBoxColor); }
public Wall(GameObjectName mGameObjectName, int index, Sprite.SpriteName mSpriteName, Wall.WallType walltype) : base(mGameObjectName, index, mSpriteName) { type = walltype; }
public void explode(Sprite.SpriteName spriteName) { this.cProxySprite.setAll(spriteName, this.x, this.y); }
public UFO(GameObject.GameObjectName mGameObjectName, int index, Sprite.SpriteName mSpriteName, UFO.UFOType ufoType) : base(mGameObjectName, index, mSpriteName) { this.type = ufoType; this.launch = false; }
public Bomb(GameObject.GameObjectName mGameObjectName, int index, Sprite.SpriteName mSpriteName, BombType bombType) : base(mGameObjectName, index, mSpriteName) { this.type = bombType; }
public WallRoot(GameObjectName mGameObjectName, int index, Sprite.SpriteName mSpriteName, Wall.WallType walltype) : base(mGameObjectName, index, mSpriteName, walltype) { // this.cCollisionObj.cSpriteBox.setColor(Unit.spriteBoxColor); }
public void swapImage(Sprite.SpriteName spriteName) { this.cProxySprite.setAll(spriteName, this.x, this.y); }
public ShieldGrid(GameObject.GameObjectName mGameObjectName, int index, Sprite.SpriteName mSpriteName) : base(mGameObjectName, index, mSpriteName) { // this.cCollisionObj.cSpriteBox.setColor(Unit.spriteBoxColor); }
public Ship(GameObject.GameObjectName mGameObjectName, int index, Sprite.SpriteName mSpriteName) : base(mGameObjectName, index, mSpriteName) { }
public Missile(GameObject.GameObjectName mGameObjectName, int index, Sprite.SpriteName mSpriteName, Missile.MissileType missileType) : base(mGameObjectName, index, mSpriteName) { this.type = missileType; }