Пример #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);
                }
            }
        }
Пример #2
0
 public TextureWoodPlatformVertical(Texture decor)
     : base(decor)
 {
 }
Пример #3
0
 public TextureWoodPlatformHorizontal(Texture decor)
     : base(decor)
 {
 }
Пример #4
0
 public TextureTable(Texture decor)
     : base(decor)
 {
 }
Пример #5
0
 public TextureSkull(Texture decor)
     : base(decor)
 {
 }
Пример #6
0
 public TexturePlayer(Texture decor)
     : base(decor)
 {
 }
Пример #7
0
 public TexturePlane1(Texture decor)
     : base(decor)
 {
 }
Пример #8
0
 public Case(Texture textures)
 {
     if (textures != null) Textures = textures;
     else  Textures = new TextureHerbe();
 }
Пример #9
0
 public TextureFootIcon(Texture decor)
     : base(decor)
 {
 }
Пример #10
0
 public TextureDollar3D(Texture decor)
     : base(decor)
 {
 }
Пример #11
0
 public void SetTextureDeBase(Texture decor)
 {
     Decor = decor;
 }
Пример #12
0
 public TextureDecorator(Texture decor)
 {
     SetTextureDeBase(decor);
 }
Пример #13
0
 public void SetTextures(Texture decor)
 {
     Textures = decor;
 }
Пример #14
0
 public TextureBee(Texture decor)
     : base(decor)
 {
 }
Пример #15
0
 public TexturePikachu(Texture decor)
     : base(decor)
 {
 }
Пример #16
0
 public TextureCrossedCircle(Texture decor)
     : base(decor)
 {
 }
Пример #17
0
 public Case()
 {
     Textures = new TextureHerbe();
 }