示例#1
0
文件: BodyPart.cs 项目: bilwis/SH2RL
 public void ConnectToBody(Body body, BodyPart parent=null)
 {
     cleanup();
     IsSevered = false;
     initialized = false;
     this.body = body;
     this.parent = parent;
 }
示例#2
0
文件: Creature.cs 项目: bilwis/SH2RL
        public Creature(int x, int y, int z, String name, String desc, char displaychar, Body body, CharStats stats)
        {
            _guid = System.Guid.NewGuid().ToString();
            this.x = x;
            this.y = y;
            this.z = z;
            _name = name;
            _desc = desc;

            _char = displaychar;

            this.Body = body;
            this.Stats = stats;
            Inventory = new WeightedInventory<Item>(Stats.GetCarryCapacity());
            Equip = new Equipment<EquippableItem>();

            energy = 0;
            energyReg = 1.0d;
        }
示例#3
0
文件: Creature.cs 项目: bilwis/SH2RL
 public Player(int x, int y, int z, String name, String desc, char displaychar, Body body, CharStats stats)
     : base(x, y, z, name, desc, displaychar, body, stats)
 {
     energyReg = 1.1d;
 }