Esempio n. 1
0
 protected PersonnageAbstract(string nom, EGame simulation, TextureDecorator texture)
 {
     Simulation    = simulation;
     Nom           = nom;
     Texture       = texture;
     PointsDeVie   = 20;
     SeuilCritique = 10;
 }
Esempio n. 2
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);
                }
            }
        }
Esempio n. 3
0
 public SpawnPoint(string nom, EGame nomdujeu, TextureDecorator texture)
     : base(nom, nomdujeu, texture)
 {
 }
Esempio n. 4
0
 public SpawnPoint(string nom, TextureDecorator texture)
     : base(nom, texture)
 {
 }
Esempio n. 5
0
 public SpawnPoint(string nom, EGame nomdujeu, TextureDecorator texture) : base(nom, nomdujeu, texture)
 {
 }
Esempio n. 6
0
 public SpawnPoint(string nom, TextureDecorator texture) : base(nom, texture)
 {
 }
Esempio n. 7
0
 protected PersonnageMobilisable(string nom, EGame simulation, TextureDecorator texture)
     : base(nom, simulation, texture)
 {
     Etat = null;
 }
 public GatherPoint(string nom, TextureDecorator texture)
     : base(nom, texture)
 {
 }
 public GatherPoint(string nom, TextureDecorator texture) : base(nom, texture)
 {
 }