コード例 #1
0
 public AICharacter(string name,
                    int currentPf,
                    int maximumPf,
                    int hunger,
                    AI intelligence,
                    int perceptionDistance,
                    AI.SensingMethod sensingMethod = null,
                    Stats?stats           = null,
                    Armor wornArmor       = null,
                    Shield embracedShield = null,
                    Weapon handledWeapon  = null,
                    Backpack backpack     = null,
                    God god            = null,
                    bool unblockable   = false,
                    string symbol      = "C",
                    Color?color        = null,
                    string description = "A creature of the world",
                    Coord position     = new Coord(),
                    Allied hostile     = Allied.Enemy)
     : base(name,
            currentPf,
            maximumPf,
            hunger,
            stats == null ? new Stats(StatsBuilder.RandomStats()) : (Stats)stats,
            wornArmor,
            embracedShield,
            handledWeapon,
            backpack == null ? new Backpack() : backpack,
            god,
            unblockable,
            symbol,
            color == null
                 ? (hostile == Allied.Enemy ? Color.Red : Color.Green)
                 : (Color)color,
            description,
            position)
 {
     this.intelligence = intelligence;
     this.SensePg      = sensingMethod == null ? AI.SensingAlgorythms.AllAround : sensingMethod;
     this.intelligence.ControlledCharacter = this;
     this.PerceptionDistance = perceptionDistance;
     this.AlliedTo           = hostile;
 }
コード例 #2
0
ファイル: Orc.cs プロジェクト: Fux90/GodsWill_ASCIIRPG
 public Orc(string name,
            int currentPf,
            int maximumPf,
            int hunger,
            AI intelligence,
            AI.SensingMethod sensingMethod,
            int perceptionDistance,
            Stats stats,
            Armor wornArmor,
            Shield embracedShield,
            Weapon handledWeapon,
            Backpack backpack,
            God god,
            string symbol,
            Color color,
            string description,
            Coord position,
            Allied hostile)
     : base(name,
            currentPf,
            maximumPf,
            hunger,
            intelligence,
            perceptionDistance,
            sensingMethod,
            stats,
            wornArmor,
            embracedShield,
            handledWeapon,
            backpack,
            god,
            false,
            symbol,
            color,
            description,
            position,
            hostile)
 {
 }
コード例 #3
0
ファイル: Orc.cs プロジェクト: Fux90/GodsWill_ASCIIRPG
        public Orc( string name,
                    int currentPf,
                    int maximumPf,
                    int hunger,
                    AI intelligence,
                    AI.SensingMethod sensingMethod,
                    int perceptionDistance,
                    Stats stats,
                    Armor wornArmor,
                    Shield embracedShield,
                    Weapon handledWeapon,
                    Backpack backpack,
                    God god,
                    string symbol,
                    Color color,
                    string description,
                    Coord position,
                    Allied hostile)
            : base( name,
                    currentPf,
                    maximumPf,
                    hunger,
                    intelligence,
                    perceptionDistance,
                    sensingMethod,
                    stats,
                    wornArmor,
                    embracedShield,
                    handledWeapon,
                    backpack,
                    god,
                    false,
                    symbol,
                    color,
                    description,
                    position,
                    hostile)
        {

        }
コード例 #4
0
 public AICharacter( string name, 
                     int currentPf,
                     int maximumPf,
                     int hunger,
                     AI intelligence, 
                     int perceptionDistance,
                     AI.SensingMethod sensingMethod = null,
                     Stats? stats = null,
                     Armor wornArmor = null,
                     Shield embracedShield = null,
                     Weapon handledWeapon = null,
                     Backpack backpack = null,
                     God god = null,
                     bool unblockable = false,
                     string symbol = "C",
                     Color? color = null,
                     string description = "A creature of the world", 
                     Coord position = new Coord(),
                     Allied hostile = Allied.Enemy)
     : base( name, 
             currentPf,
             maximumPf,
             hunger,
             stats == null ? new Stats(StatsBuilder.RandomStats()) : (Stats)stats,
             wornArmor,
             embracedShield, 
             handledWeapon, 
             backpack == null ? new Backpack() : backpack,
             god,
             unblockable,
             symbol,
             color == null 
                 ? (hostile == Allied.Enemy ? Color.Red : Color.Green)
                 : (Color)color,
             description,
             position)
 {
     this.intelligence = intelligence;
     this.SensePg = sensingMethod == null ? AI.SensingAlgorythms.AllAround : sensingMethod;
     this.intelligence.ControlledCharacter = this;
     this.PerceptionDistance = perceptionDistance;
     this.AlliedTo = hostile;
 }