Example #1
0
        public void Update()
        {
            if (ZoneToObserve != null) ZoneTexture = ZoneToObserve.Texture;
            else ZoneTexture = null;

            if (ObjectToObserve != null) ObjectTexture = ObjectToObserve.Texture;
            else ObjectTexture = null;

            if (PersonnageToObserve != null) PersonnageTexture = PersonnageToObserve.Texture;
            else PersonnageTexture = null;

            if (PersonnageTexture == null)
            {
                // BASE
                if (ObjectTexture == null) SetTextures(ZoneTexture);
                else
                {
                    // OBJET + BASE
                    ObjectTexture.SetTextureDeBase(ZoneTexture);
                    this.SetTextures(ObjectTexture);
                }
            }
            else
            {
                if (ObjectTexture == null)
                {
                    // PERSO + BASE
                    PersonnageTexture.SetTextureDeBase(ZoneTexture);
                    this.SetTextures(PersonnageTexture);
                }
                else
                {
                    // PERSO + OBJET + BASE
                    ObjectTexture.SetTextureDeBase(ZoneTexture);
                    PersonnageTexture.SetTextureDeBase(ObjectTexture);
                    this.SetTextures(PersonnageTexture);
                }
            }
        }
Example #2
0
 public TextureWoodPlatformVertical(Texture decor)
     : base(decor)
 {
 }
Example #3
0
 public TextureWoodPlatformHorizontal(Texture decor)
     : base(decor)
 {
 }
Example #4
0
 public TextureTable(Texture decor)
     : base(decor)
 {
 }
Example #5
0
 public TextureSkull(Texture decor)
     : base(decor)
 {
 }
Example #6
0
 public TexturePlayer(Texture decor)
     : base(decor)
 {
 }
Example #7
0
 public TexturePlane1(Texture decor)
     : base(decor)
 {
 }
Example #8
0
 public Case(Texture textures)
 {
     if (textures != null) Textures = textures;
     else  Textures = new TextureHerbe();
 }
Example #9
0
 public TextureFootIcon(Texture decor)
     : base(decor)
 {
 }
Example #10
0
 public TextureDollar3D(Texture decor)
     : base(decor)
 {
 }
Example #11
0
 public void SetTextureDeBase(Texture decor)
 {
     Decor = decor;
 }
Example #12
0
 public TextureDecorator(Texture decor)
 {
     SetTextureDeBase(decor);
 }
Example #13
0
 public void SetTextures(Texture decor)
 {
     Textures = decor;
 }
Example #14
0
 public TextureBee(Texture decor)
     : base(decor)
 {
 }
Example #15
0
 public TexturePikachu(Texture decor)
     : base(decor)
 {
 }
Example #16
0
 public TextureCrossedCircle(Texture decor)
     : base(decor)
 {
 }
Example #17
0
 public Case()
 {
     Textures = new TextureHerbe();
 }