Beispiel #1
0
        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;
        }
Beispiel #2
0
        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);
        }
Beispiel #3
0
        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;
            }
        }
Beispiel #4
0
        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;
        }
Beispiel #5
0
        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;
            }
        }