66 */
77public class HbPestoState {
88
9- class HpComplementsPestoState {
9+ public class HbComplementsPestoState {
1010
11- int mgPassedPawnsBonus ;
12- int egPassedPawnsBonus ;
13- public HpComplementsPestoState () {
11+ public int mgPassedPawnsBonus ;
12+ public int egPassedPawnsBonus ;
13+ public HbComplementsPestoState () {
1414 super ();
1515 mgPassedPawnsBonus = 1 ;
1616 }
@@ -19,15 +19,15 @@ public HpComplementsPestoState() {
1919 }
2020 int mgPoints ;
2121 int egPoints ;
22- HpComplementsPestoState hnComplPs ;
22+ public HbComplementsPestoState hbComplPs ;
2323
2424 int phasePoints ;
2525
2626
2727
28- HbPestoState () {
28+ public HbPestoState () {
2929 super ();
30- hnComplPs = new HpComplementsPestoState ();
30+ hbComplPs = new HbComplementsPestoState ();
3131 }
3232
3333 public int getMgPoints () {
@@ -46,12 +46,12 @@ public void setEgPoints(int egPoints) {
4646 this .egPoints = egPoints ;
4747 }
4848
49- public HpComplementsPestoState getHnComplPs () {
50- return hnComplPs ;
49+ public HbComplementsPestoState getHnComplPs () {
50+ return hbComplPs ;
5151 }
5252
53- public void setHnComplPs (HpComplementsPestoState hnComplPs ) {
54- this .hnComplPs = hnComplPs ;
53+ public void setHnComplPs (HbComplementsPestoState hnComplPs ) {
54+ this .hbComplPs = hnComplPs ;
5555 }
5656
5757 public int getPhasePoints () {
@@ -62,31 +62,22 @@ public void setPhasePoints(int phasePoints) {
6262 this .phasePoints = phasePoints ;
6363 }
6464
65- void copyTo (HbPestoState other ) {
65+ public void copyTo (HbPestoState other ) {
6666 other .mgPoints = mgPoints ;
6767 other .egPoints = egPoints ;
6868 other .phasePoints = phasePoints ;
69- other .hnComplPs .mgPassedPawnsBonus = hnComplPs .mgPassedPawnsBonus ;
70- other .hnComplPs .egPassedPawnsBonus = hnComplPs .egPassedPawnsBonus ;
69+ other .hbComplPs .mgPassedPawnsBonus = hbComplPs .mgPassedPawnsBonus ;
70+ other .hbComplPs .egPassedPawnsBonus = hbComplPs .egPassedPawnsBonus ;
7171 }
7272
7373 void clear () {
7474 mgPoints = 0 ;
7575 egPoints = 0 ;
7676 phasePoints = 0 ;
77+ hbComplPs .mgPassedPawnsBonus =0 ;
78+ hbComplPs .egPassedPawnsBonus =0 ;
79+
7780 }
7881
79- public static void main (String [] args ) {
80- HbPestoState lHbPestoState = new HbPestoState ();
81- System .out .println (lHbPestoState .hnComplPs .mgPassedPawnsBonus );
82- System .out .println (lHbPestoState .hnComplPs .egPassedPawnsBonus );
83- (lHbPestoState .hnComplPs .mgPassedPawnsBonus )++;
84- System .out .println (lHbPestoState .hnComplPs .mgPassedPawnsBonus );
85- System .out .println ("STALINE" );
86- HbPestoState HbPestoState2 = new HbPestoState ();
87- lHbPestoState .copyTo (HbPestoState2 );
88- System .out .println (HbPestoState2 .hnComplPs .mgPassedPawnsBonus );
89- System .out .println (HbPestoState2 .hnComplPs .egPassedPawnsBonus );
90-
91- }
82+
9283}
0 commit comments