Added new Class (Player, Guest and Stat) ✅
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
1660bb0673
commit
cac321d92a
@ -0,0 +1,3 @@
|
|||||||
|
# Default ignored files
|
||||||
|
/shelf/
|
||||||
|
/workspace.xml
|
@ -0,0 +1,13 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<module type="JAVA_MODULE" version="4">
|
||||||
|
<component name="NewModuleRootManager" inherit-compiler-output="true">
|
||||||
|
<exclude-output />
|
||||||
|
<content url="file://$MODULE_DIR$">
|
||||||
|
<excludeFolder url="file://$MODULE_DIR$/Sources/bowlin_project/build" />
|
||||||
|
<excludeFolder url="file://$MODULE_DIR$/Sources/bowlin_project/.pub" />
|
||||||
|
<excludeFolder url="file://$MODULE_DIR$/Sources/bowlin_project/.dart_tool" />
|
||||||
|
</content>
|
||||||
|
<orderEntry type="inheritedJdk" />
|
||||||
|
<orderEntry type="sourceFolder" forTests="false" />
|
||||||
|
</component>
|
||||||
|
</module>
|
@ -0,0 +1,8 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<project version="4">
|
||||||
|
<component name="ProjectModuleManager">
|
||||||
|
<modules>
|
||||||
|
<module fileurl="file://$PROJECT_DIR$/.idea/Bowl_in.iml" filepath="$PROJECT_DIR$/.idea/Bowl_in.iml" />
|
||||||
|
</modules>
|
||||||
|
</component>
|
||||||
|
</project>
|
@ -0,0 +1,6 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<project version="4">
|
||||||
|
<component name="VcsDirectoryMappings">
|
||||||
|
<mapping directory="" vcs="Git" />
|
||||||
|
</component>
|
||||||
|
</project>
|
@ -1,11 +1,13 @@
|
|||||||
class Achievement {
|
class Achievement {
|
||||||
|
|
||||||
String _name;
|
String _name;
|
||||||
|
|
||||||
|
Achievement(this._name);
|
||||||
|
|
||||||
String get name => _name;
|
String get name => _name;
|
||||||
|
|
||||||
set name(String value) {
|
set name(String value) {
|
||||||
_name = value;
|
_name = value;
|
||||||
}
|
}
|
||||||
|
|
||||||
Achievement(this._name);
|
|
||||||
}
|
}
|
||||||
|
@ -0,0 +1,9 @@
|
|||||||
|
import 'package:uuid/uuid.dart';
|
||||||
|
import 'package:uuid/uuid_util.dart';
|
||||||
|
import 'Achievement.dart';
|
||||||
|
|
||||||
|
class User {
|
||||||
|
|
||||||
|
User(Uuid id, String image, String name): super(id, image, name);
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,27 @@
|
|||||||
|
import 'package:uuid/uuid.dart';
|
||||||
|
import 'package:uuid/uuid_util.dart';
|
||||||
|
import 'Achievement.dart';
|
||||||
|
|
||||||
|
class Player {
|
||||||
|
|
||||||
|
final Uuid _id;
|
||||||
|
String _image;
|
||||||
|
String _name;
|
||||||
|
|
||||||
|
User(this._id, this._image, this._name);
|
||||||
|
|
||||||
|
get id => _id;
|
||||||
|
|
||||||
|
String get name => _name;
|
||||||
|
|
||||||
|
set name(String value) {
|
||||||
|
_name = value;
|
||||||
|
}
|
||||||
|
|
||||||
|
String get image => _image;
|
||||||
|
|
||||||
|
set image(String value) {
|
||||||
|
_image = value;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,70 @@
|
|||||||
|
class Stat {
|
||||||
|
|
||||||
|
int _nbVictory;
|
||||||
|
int _nbDefeat;
|
||||||
|
int _nbGames;
|
||||||
|
int _highscore;
|
||||||
|
int _nbStrikes;
|
||||||
|
int _nbSpares;
|
||||||
|
int _nbScore;
|
||||||
|
int _avgScore;
|
||||||
|
double _avgPinsPerRound;
|
||||||
|
|
||||||
|
Round(this._nbVictory,this._nbDefeat,this._nbGames,this._highscore,this._nbStrikes,this._nbSpares,this._avgScore,this._avgPinsPerRound);
|
||||||
|
|
||||||
|
|
||||||
|
int get nbVictory => _nbVictory;
|
||||||
|
|
||||||
|
set nbVictory(int value) {
|
||||||
|
_nbVictory = value;
|
||||||
|
}
|
||||||
|
|
||||||
|
int get nbDefeat => _nbDefeat;
|
||||||
|
|
||||||
|
set nbDefeat(int value) {
|
||||||
|
_nbDefeat = value;
|
||||||
|
}
|
||||||
|
|
||||||
|
int get nbGames => _nbGames;
|
||||||
|
|
||||||
|
set nbGames(int value) {
|
||||||
|
_nbGames = value;
|
||||||
|
}
|
||||||
|
|
||||||
|
int get highscore => _highscore;
|
||||||
|
|
||||||
|
set highscore(int value) {
|
||||||
|
_highscore = value;
|
||||||
|
}
|
||||||
|
|
||||||
|
int get nbStrikes => _nbStrikes;
|
||||||
|
|
||||||
|
set nbStrikes(int value) {
|
||||||
|
_nbStrikes = value;
|
||||||
|
}
|
||||||
|
|
||||||
|
int get nbSpares => _nbSpares;
|
||||||
|
|
||||||
|
set nbSpares(int value) {
|
||||||
|
_nbSpares = value;
|
||||||
|
}
|
||||||
|
|
||||||
|
int get nbScore => _nbScore;
|
||||||
|
|
||||||
|
set nbScore(int value) {
|
||||||
|
_nbScore = value;
|
||||||
|
}
|
||||||
|
|
||||||
|
int get avgScore => _avgScore;
|
||||||
|
|
||||||
|
set avgScore(int value) {
|
||||||
|
_avgScore = value;
|
||||||
|
}
|
||||||
|
|
||||||
|
double get avgPinsPerRound => _avgPinsPerRound;
|
||||||
|
|
||||||
|
set avgPinsPerRound(double value) {
|
||||||
|
_avgPinsPerRound = value;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
Loading…
Reference in new issue