public SpaceTile(Vector2 worldLocation) { TextureNames textureName = (TextureNames)Random.Next((int)TextureNames.Unknown1, (int)TextureNames.Unknown6); TextureLink textureLink = TextureManager.Textures[textureName]; BaseSprite = new Sprite(worldLocation, textureLink.SpriteSheet, textureLink.SourceRectangle, Vector2.Zero); BaseSprite.AnimateWhenStopped = true; BaseSprite.CollisionRadius = EncounterRange; IsStar = false; }
public EarthTile(Vector2 worldLocation) { TextureLink textureLink = TextureManager.Textures[TextureNames.Earth1]; BaseSprite = new Sprite(worldLocation, textureLink.SpriteSheet, textureLink.SourceRectangle, Vector2.Zero); BaseSprite.AnimateWhenStopped = true; BaseSprite.CollisionRadius = EncounterRange; Encounter = false; LongRangeScanned = true; tester = new HelpfulScanners(worldLocation); }
public override void LongRangeScan() { if (LongRangeScanned == false) { SoundManager.CivAlert.Play(); LongRangeScanned = true; TextureNames textureName = (TextureNames)Random.Next((int)TextureNames.Star1, (int)TextureNames.Star7); TextureLink textureLink = TextureManager.Textures[textureName]; BaseSprite = new Sprite(BaseSprite.WorldLocation, textureLink.SpriteSheet, textureLink.SourceRectangle, Vector2.Zero); Color tint = new Color( Random.Next(1, 254), Random.Next(1,254), Random.Next(1,254)); BaseSprite.TintColor = tint; BaseSprite.AnimateWhenStopped = true; BaseSprite.CollisionRadius = 1; } }
public virtual void EncounterResult(bool action1Selected) { EncounterManager.EncounterActive = false; LongRangeScanned = true; TextureNames textureName = (TextureNames)Random.Next((int)TextureNames.Empty1, (int)TextureNames.Empty4); TextureLink textureLink = TextureManager.Textures[textureName]; BaseSprite = new Sprite(BaseSprite.WorldLocation, textureLink.SpriteSheet, textureLink.SourceRectangle, Vector2.Zero); BaseSprite.AnimateWhenStopped = true; BaseSprite.CollisionRadius = 1; Encounter = false; }
public virtual void LongRangeScan() { if (LongRangeScanned == false) { LongRangeScanned = true; TextureNames textureName = (TextureNames)Random.Next((int)TextureNames.Empty1, (int)TextureNames.Empty4); TextureLink textureLink = TextureManager.Textures[textureName]; BaseSprite = new Sprite(BaseSprite.WorldLocation, textureLink.SpriteSheet, textureLink.SourceRectangle, Vector2.Zero); BaseSprite.AnimateWhenStopped = true; BaseSprite.CollisionRadius = EncounterRange; } }