Example #1
0
        public CrewMember(string name, int age, float posX, float posY, string sprite)
            : base(new Vector2(posX, posY), 64, 64, 32, true, name)
        {
            _name = name;
            _age = age;
            _country = new Country();
            _country.Name = "England";
            _country.Demonym = "English";
            _country.Flag = "England_Flag";

            _needs.Health = 100;
            _needs.Energy = 100;
            _needs.Hunger = 100;
            _needs.Thirst = 100;
            _needs.Stress = 100;

            _skills.Fitness = 0;
            _skills.Engineering = 0;
            _skills.Agriculture = 0;
            _skills.Medicine = 0;

            _walk_speed = 4;
            _run_speed = 10;

            this.MaxVelocity = _walk_speed;

            _traits = new List<Trait>();

            _sprite = sprite;

            this.Position = new Vector2(posX, posY);

            _current_state = 0;
            _current_exertion_rate = GetExertionRate(CrewState.Idle);
            _current_damage_rate = -1;
            _current_hunger_rate = -0.2f;
            _current_thirst_rate = -0.25f;
            _current_stress_rate = -0.001f;

            this.Width = 64;
            this.Height = 64;

            _activity = "Idle";
        }
Example #2
0
        public CrewMember()
            : base()
        {
            _name = "NO_NAME";
            _age = 0;
            _country = new Country();
            _country.Name = "Earth";
            _country.Demonym = "Human";
            _country.Flag = "EarthFlag";

            _needs.Health = 100;
            _needs.Energy = 100;
            _needs.Hunger = 100;
            _needs.Thirst = 100;
            _needs.Stress = 100;

            _skills.Fitness = 0;
            _skills.Engineering = 0;
            _skills.Agriculture = 0;
            _skills.Medicine = 0;

            _walk_speed = 60;
            _run_speed = 100;

            _traits = new List<Trait>();
            Selected = false;

            _activity = "Idle";
        }