Exemple #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);
                }
            }
        }
 public TextureWoodPlatformVertical(Texture decor)
     : base(decor)
 {
 }
 public TextureWoodPlatformHorizontal(Texture decor)
     : base(decor)
 {
 }
 public TextureTable(Texture decor)
     : base(decor)
 {
 }
 public TextureSkull(Texture decor)
     : base(decor)
 {
 }
 public TexturePlayer(Texture decor)
     : base(decor)
 {
 }
 public TexturePlane1(Texture decor)
     : base(decor)
 {
 }
Exemple #8
0
 public Case(Texture textures)
 {
     if (textures != null) Textures = textures;
     else  Textures = new TextureHerbe();
 }
 public TextureFootIcon(Texture decor)
     : base(decor)
 {
 }
 public TextureDollar3D(Texture decor)
     : base(decor)
 {
 }
 public void SetTextureDeBase(Texture decor)
 {
     Decor = decor;
 }
 public TextureDecorator(Texture decor)
 {
     SetTextureDeBase(decor);
 }
Exemple #13
0
 public void SetTextures(Texture decor)
 {
     Textures = decor;
 }
 public TextureBee(Texture decor)
     : base(decor)
 {
 }
 public TexturePikachu(Texture decor)
     : base(decor)
 {
 }
 public TextureCrossedCircle(Texture decor)
     : base(decor)
 {
 }
Exemple #17
0
 public Case()
 {
     Textures = new TextureHerbe();
 }