protected PersonnageAbstract(string nom, EGame simulation, TextureDecorator texture) { Simulation = simulation; Nom = nom; Texture = texture; PointsDeVie = 20; SeuilCritique = 10; }
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 SpawnPoint(string nom, EGame nomdujeu, TextureDecorator texture) : base(nom, nomdujeu, texture) { }
public SpawnPoint(string nom, TextureDecorator texture) : base(nom, texture) { }
protected PersonnageMobilisable(string nom, EGame simulation, TextureDecorator texture) : base(nom, simulation, texture) { Etat = null; }
public GatherPoint(string nom, TextureDecorator texture) : base(nom, texture) { }