Ejemplo n.º 1
0
    protected PlayerInfo(PlayerInfo other)
    {
        this.Profile           = new PlayerProfile();
        this.Profile.Name      = other.Profile.Name;
        this.Profile.Age       = other.Profile.Age;
        this.Profile.Role      = other.Profile.Role;
        this.Profile.HIVStatus = other.Profile.HIVStatus;

        this.Nature              = new PlayerNature();
        this.Nature.PrettyFace   = other.Nature.PrettyFace;
        this.Nature.DickSize     = other.Nature.DickSize;
        this.Nature.AssEndurance = other.Nature.AssEndurance;
        this.Nature.OralTalent   = other.Nature.OralTalent;

        this.Stats              = new PlayerStats();
        this.Stats.BodyFat      = other.Stats.BodyFat;
        this.Stats.BodyMuscles  = other.Stats.BodyMuscles;
        this.Stats.BodyHair     = other.Stats.BodyHair;
        this.Stats.Sympathy     = other.Stats.Sympathy;
        this.Stats.Intelligence = other.Stats.Intelligence;
        this.Stats.SexStamina   = other.Stats.SexStamina;
        this.Stats.Sexiness     = other.Stats.Sexiness;

        this.State                = new PlayerState();
        this.State.SexCount       = other.State.SexCount;
        this.State.DaysLeft       = other.State.DaysLeft;
        this.State.Money          = other.State.Money;
        this.State.Salary         = other.State.Salary;
        this.State.Fatigue        = other.State.Fatigue;
        this.State.MaxFatigue     = other.State.MaxFatigue;
        this.State.SelfConfidence = other.State.SelfConfidence;
    }
Ejemplo n.º 2
0
 public Game(int width, int height, string player1Name, PlayerNature player1Nature,
             string player2Name, PlayerNature player2Nature)
 {
     Width           = width;
     Height          = height;
     PlayerOne       = new Player(player1Name, player1Nature);
     PlayerTwo       = new Player(player2Name, player2Nature);
     PlayerTurn      = PlayerOrder.First;
     Field           = new Field(width, height);
     CurrentPosition = Field.MiddlePoint;
     MovesHistory    = new List <Move>();
     LastMoves       = new List <Move>();
 }
Ejemplo n.º 3
0
        public NewGame(Game game)
        {
            InitializeComponent();

            _width         = game.Width;
            _height        = game.Height;
            _Player1Nature = game.PlayerOne.Nature;
            _Player2Nature = game.PlayerTwo.Nature;


            numericUpDownWidth.Value  = _width == 0 ? DefaultWidth : _width;
            numericUpDownHeight.Value = _height == 0 ? DefaultHeight : _height;
            buttonOpponent.Text       = _Player2Nature.ToString();
            buttonPlayer1Nature.Text  = _Player1Nature.ToString();
            textBoxPlayer1Name.Text   = game.PlayerOne.Name;
            textBoxPlayer2Name.Text   = game.PlayerTwo.Name;
            ActiveControl             = buttonStartNewGame;
        }
Ejemplo n.º 4
0
        private void buttonPlayer1Nature_Click(object sender, EventArgs e)
        {
            switch (_Player1Nature)
            {
            case PlayerNature.Human:
                _lastName1 = textBoxPlayer1Name.Text;
                textBoxPlayer1Name.Text = "Walter";
                _Player1Nature          = PlayerNature.Computer;
                break;

            case PlayerNature.Computer:
                _Player1Nature          = PlayerNature.Human;
                textBoxPlayer1Name.Text = _lastName1;
                break;
            }

            buttonPlayer1Nature.Text = _Player1Nature.ToString();
        }
Ejemplo n.º 5
0
        private void buttonOpponent_Click(object sender, EventArgs e)
        {
            switch (_Player2Nature)
            {
            case PlayerNature.Human:
                _lastName2              = textBoxPlayer2Name.Text;
                _Player2Nature          = PlayerNature.Computer;
                textBoxPlayer2Name.Text = "Walter";
                listBox_Player2.Enabled = true;
                break;

            case PlayerNature.Computer:
                _Player2Nature          = PlayerNature.Human;
                textBoxPlayer2Name.Text = _lastName2;
                listBox_Player2.Enabled = false;
                break;
            }

            buttonOpponent.Text = _Player2Nature.ToString();
        }
Ejemplo n.º 6
0
 public Player(string name, PlayerNature playerNature)
 {
     Name   = name;
     Nature = playerNature;
 }