Пример #1
0
 public void ConnectToBody(Body body, BodyPart parent=null)
 {
     cleanup();
     IsSevered = false;
     initialized = false;
     this.body = body;
     this.parent = parent;
 }
Пример #2
0
        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
 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;
 }