Пример #1
0
 protected PersonnageAbstract(string nom, EGame simulation, TextureDecorator texture)
 {
     Simulation    = simulation;
     Nom           = nom;
     Texture       = texture;
     PointsDeVie   = 20;
     SeuilCritique = 10;
 }
Пример #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);
                }
            }
        }
Пример #3
0
 public SpawnPoint(string nom, EGame nomdujeu, TextureDecorator texture)
     : base(nom, nomdujeu, texture)
 {
 }
Пример #4
0
 public SpawnPoint(string nom, TextureDecorator texture)
     : base(nom, texture)
 {
 }
Пример #5
0
 public SpawnPoint(string nom, EGame nomdujeu, TextureDecorator texture) : base(nom, nomdujeu, texture)
 {
 }
Пример #6
0
 public SpawnPoint(string nom, TextureDecorator texture) : base(nom, texture)
 {
 }
Пример #7
0
 protected PersonnageMobilisable(string nom, EGame simulation, TextureDecorator texture)
     : base(nom, simulation, texture)
 {
     Etat = null;
 }
Пример #8
0
 public GatherPoint(string nom, TextureDecorator texture)
     : base(nom, texture)
 {
 }
Пример #9
0
 public GatherPoint(string nom, TextureDecorator texture) : base(nom, texture)
 {
 }