예제 #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;
 }