Ejemplo n.º 1
0
    /// <summary>
    /// Sortir d'un objet
    /// </summary>
    public void outObject()
    {
        isInObject=false;
        objectIn=null;
        malusActived=typeMalus.None;
        Appear();
        if(!IsInvoking("Consume"))
            Invoke ("Consume",ListConst.consumDelay);

        goToMeuble=false;
        meubleToGo=null;
    }
Ejemplo n.º 2
0
    /// <summary>
    /// Configuration des brigades
    /// Voir à metrte dans un fichier externe
    /// </summary>
    void ConfigBrig()
    {
        currentLevel=1;
        malusActived=typeMalus.None;

        string path = Application.dataPath + "/Ressources/"+Species+".ini";
        string _type=typeBrigade.ToString();
        speed=float.Parse(FileGest.IniReadValue(_type, "speed", path),CultureInfo.InvariantCulture.NumberFormat);
        maxLife=float.Parse(FileGest.IniReadValue(_type, "maxLife", path),CultureInfo.InvariantCulture.NumberFormat);
        foodTaking=float.Parse(FileGest.IniReadValue(_type, "foodTaking", path),CultureInfo.InvariantCulture.NumberFormat);
        waterTaking=float.Parse(FileGest.IniReadValue(_type, "waterTaking", path),CultureInfo.InvariantCulture.NumberFormat);
        constructTaking=float.Parse(FileGest.IniReadValue(_type, "constructTaking", path),CultureInfo.InvariantCulture.NumberFormat);
        foodConsum=float.Parse(FileGest.IniReadValue(_type, "foodConsum", path),CultureInfo.InvariantCulture.NumberFormat);
        waterConsum=float.Parse(FileGest.IniReadValue(_type, "waterConsum", path),CultureInfo.InvariantCulture.NumberFormat);
        destructCap=float.Parse(FileGest.IniReadValue(_type, "destructCap", path),CultureInfo.InvariantCulture.NumberFormat);
        speedSweep=float.Parse(FileGest.IniReadValue(_type, "speedSweep", path),CultureInfo.InvariantCulture.NumberFormat);
        coldResist=float.Parse(FileGest.IniReadValue(_type, "coldResist", path),CultureInfo.InvariantCulture.NumberFormat);
        hotResist=float.Parse(FileGest.IniReadValue(_type, "hotResist", path),CultureInfo.InvariantCulture.NumberFormat);
        poisonResist=float.Parse(FileGest.IniReadValue(_type, "poisonResist", path),CultureInfo.InvariantCulture.NumberFormat);
        physicResist=float.Parse(FileGest.IniReadValue(_type, "physicResist", path),CultureInfo.InvariantCulture.NumberFormat);
    }
Ejemplo n.º 3
0
 /// <summary>
 /// entrer dans un objet
 /// </summary>
 /// <param name="obj">Object.</param>
 public void inObject(ObjectScript obj)
 {
     isInObject=true;
     isSelected=false;
     goToMeuble=false;
     meubleToGo=null;
     objectIn=obj;
     if(obj.malus!=typeMalus.None)
         malusActived=obj.malus;
     Disappear();
     if(!IsInvoking("TakeMalus"))
         Invoke ("TakeMalus", ListConst.DamageDelay);
 }