commit 97e18f69efe860977e9fa149bffc7cc3265d57c2
parent 5ee517c49bd6a4e56111833d7c9ddc19064c2f38
Author: Bertrand BRUN <bertrand0brun@gmail.com>
Date: Mon, 31 Jan 2011 21:15:55 +0100
Correction de quelque bug
Diffstat:
2 files changed, 2 insertions(+), 40 deletions(-)
diff --git a/code/PtiClic/res/values/strings.xml b/code/PtiClic/res/values/strings.xml
@@ -2,7 +2,7 @@
<resources>
<string name="app_name">PtiClic</string>
<string name="prefs_name">Préférences</string>
- <string name="games_name">Jouer</string>
+ <string name="play_label">Jouer</string>
<string name="textInfo">Ce projet a été réalisé l</string>
<color name="background">#FF0000</color>
</resources>
diff --git a/code/PtiClic/src/org/pticlic/Score.java b/code/PtiClic/src/org/pticlic/Score.java
@@ -1,32 +1,15 @@
package org.pticlic;
-<<<<<<< HEAD
-import model.GamePlayed;
-=======
import org.pticlic.model.Constant;
import org.pticlic.model.GamePlayed;
->>>>>>> f74dc5006757fe52d362cf1a0d642d01dda7cf43
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
-<<<<<<< HEAD
-import android.widget.Button;
-import android.widget.TextView;
public class Score extends Activity implements OnClickListener{
-
- private double corrects;
- private double manquants;
- private double mauvais;
- private double total;
-=======
-
-public class Score extends Activity implements OnClickListener{
-
->>>>>>> f74dc5006757fe52d362cf1a0d642d01dda7cf43
private GamePlayed gamePlayed;
@@ -36,22 +19,6 @@ public class Score extends Activity implements OnClickListener{
setContentView(R.layout.score);
if (getIntent().getExtras() != null) {
-<<<<<<< HEAD
- this.corrects = getIntent().getExtras().getDouble("corrects");
- this.manquants = getIntent().getExtras().getDouble("manquants");
- this.mauvais = getIntent().getExtras().getDouble("mauvais");
- this.total = this.calculateTotal();
- }
- ((TextView)findViewById(R.id.corrects)).setText("Mots corrects : "
- + this.corrects);
- ((TextView)findViewById(R.id.manquants)).setText("Mots manquants : "
- + this.manquants);
- ((TextView)findViewById(R.id.mauvais)).setText("Mots mauvais : "
- + this.mauvais);
- ((TextView)findViewById(R.id.total)).setText("Total de " + total
- + "point(s)");
- ((Button)findViewById(R.id.jaivu)).setOnClickListener(this);
-=======
// Pour JC : GamePlayed contient toutes les infos sur la partie jouee
this.gamePlayed = (GamePlayed) getIntent().getExtras().get(Constant.SCORE_INTENT);
}
@@ -64,18 +31,13 @@ public class Score extends Activity implements OnClickListener{
// ((TextView)findViewById(R.id.total)).setText("Total de " + total
// + "point(s)");
// ((Button)findViewById(R.id.jaivu)).setOnClickListener(this);
->>>>>>> f74dc5006757fe52d362cf1a0d642d01dda7cf43
}
protected double calculateTotal(){
-<<<<<<< HEAD
- return this.corrects - this.manquants - this.mauvais;
-=======
throw new UnsupportedOperationException();
- //return this.corrects - this.manquants - this.mauvais;
->>>>>>> f74dc5006757fe52d362cf1a0d642d01dda7cf43
+ //return this.corrects - this.manquants - this.mauvais;
}
@Override