public MoveObject(float x, float y, float dw, float dh, Animation animation, TileMap map): base(x, y, dw, dh, animation, map) { this.timer = new LTimer(0); this.isComplete = false; this.allDirection = false; this.speed = 4; }
public JumpObject(float x, float y, Animation animation, TileMap map): base(x, y, 0, 0, animation, map) { this.GRAVITY = 0.6f; vx = 0; vy = 0; speed = 6f; jumpSpeed = 12f; onGround = false; forceJump = false; jumperTwo = false; canJumperTwo = true; }
public SpriteBatchObject(float x, float y, float dw, float dh, Animation animation, TileMap map) { this.SetLocation(x, y); this.tiles = map; this.animation = animation; this.dstWidth = dw; this.dstHeight = dh; Loon.Core.Graphics.Opengl.LTexture texture = animation.GetSpriteImage(); if (dw < 1 && dh < 1) { this.rectBox = new RectBox(x, y, texture .GetWidth(), texture.GetHeight()); } else { this.rectBox = new RectBox(x, y, dw, dh); } }
public SpriteBatchObject(float x, float y, float dw, float dh, Animation animation, TileMap map) { this.SetLocation(x, y); this.tiles = map; this.animation = animation; this.dstWidth = dw; this.dstHeight = dh; if (dw < 1 && dh < 1) { this.rectBox = new RectBox(x, y, animation.GetSpriteImage() .GetWidth(), animation.GetSpriteImage().GetHeight()); } else { this.rectBox = new RectBox(x, y, dw, dh); } }
public JumperTwo(float x, float y, Animation animation, TileMap tiles) : base(x, y, 32, 32, animation, tiles) { }
public MoveObject(float x, float y, Animation animation, TileMap map):this(x, y, 0, 0, animation, map) { }
public virtual void SetOffset(TileMap tile, float sx, float sy) { offset.Set(sx, sy); tile.SetOffset(offset); }
public SimpleObject(float x, float y, float w, float h, Animation animation, TileMap tiles) : base(x, y, w, h, animation, tiles) { }
public virtual void RemoveTileMap(TileMap t) { tiles.Remove(t); }
public virtual void SetIndexTile(TileMap indexTile) { this.indexTile = indexTile; }
public override void Dispose() { this.keySize = 0; if (batch != null) { batch.Dispose(); batch = null; } if (content != null) { content.Dispose(); content = null; } if (indexTile != null) { indexTile.Dispose(); indexTile = null; } if (objects != null) { objects.Clear(); objects = null; } if (pendingAdd != null) { pendingAdd.Clear(); pendingAdd = null; } if (pendingRemove != null) { pendingRemove.Clear(); pendingRemove = null; } tiles.Clear(); Close(); }
public virtual void putTileMap(TileMap t) { tiles.Add(t); }
public JumpI(TileMap indexMap, Animation enemyAnimation) { this.indexMap = indexMap; this.enemyAnimation = enemyAnimation; }
public override void Dispose() { if (batch != null) { batch.Dispose(); batch = null; } if (indexTile != null) { indexTile.Dispose(); indexTile = null; } tiles.Clear(); Close(); }
public Enemy(float x, float y, Animation animation, TileMap tiles) : base(x, y, 32, 32, animation, tiles) { vx = -SPEED; vy = 0; }
public Coin(float x, float y, Animation animation, TileMap tiles) : base(x, y, 32, 32, animation, tiles) { }
public Accelerator(float x, float y, Animation animation, TileMap tiles) : base(x, y, 32, 32, animation, tiles) { }
public void PutTileMap(TileMap t) { tiles.Add(t); }
public override void Dispose() { if (usePhysics) { _manager.SetStart(false); _manager.SetEnableGravity(false); _Bodys.Clear(); } this.keySize = 0; if (batch != null) { batch.Dispose(); batch = null; } if (content != null) { content.Dispose(); content = null; } if (indexTile != null) { indexTile.Dispose(); indexTile = null; } if (objects != null) { objects.Clear(); objects = null; } if (pendingAdd != null) { pendingAdd.Clear(); pendingAdd = null; } if (pendingRemove != null) { pendingRemove.Clear(); pendingRemove = null; } tiles.Clear(); Close(); }