Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
Not Alone
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
2
Issues
2
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Environments
Packages & Registries
Packages & Registries
Package Registry
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Mamadou Saliou DIALLO
Not Alone
Commits
7475c871
Commit
7475c871
authored
Dec 04, 2020
by
Mamadou Saliou DIALLO
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
create base of player and square classe's
parent
c2a29129
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
62 additions
and
0 deletions
+62
-0
not-alone-server/src/main/java/fr/univnantes/alma/model/player/Creature.java
...c/main/java/fr/univnantes/alma/model/player/Creature.java
+7
-0
not-alone-server/src/main/java/fr/univnantes/alma/model/player/Player.java
...src/main/java/fr/univnantes/alma/model/player/Player.java
+7
-0
not-alone-server/src/main/java/fr/univnantes/alma/model/player/Tracked.java
...rc/main/java/fr/univnantes/alma/model/player/Tracked.java
+7
-0
not-alone-server/src/main/java/fr/univnantes/alma/model/square/Square.java
...src/main/java/fr/univnantes/alma/model/square/Square.java
+28
-0
not-alone-server/src/main/java/fr/univnantes/alma/model/square/TrackedSquare.java
...n/java/fr/univnantes/alma/model/square/TrackedSquare.java
+13
-0
No files found.
not-alone-server/src/main/java/fr/univnantes/alma/model/player/Creature.java
0 → 100644
View file @
7475c871
package
fr.univnantes.alma.model.player
;
/**
* Single Creature game player.
*/
public
class
Creature
extends
Player
{
}
not-alone-server/src/main/java/fr/univnantes/alma/model/player/Player.java
0 → 100644
View file @
7475c871
package
fr.univnantes.alma.model.player
;
/**
* Single game player.
*/
public
abstract
class
Player
{
}
not-alone-server/src/main/java/fr/univnantes/alma/model/player/Tracked.java
0 → 100644
View file @
7475c871
package
fr.univnantes.alma.model.player
;
/**
* Single Tracked game player.
*/
public
class
Tracked
extends
Player
{
}
not-alone-server/src/main/java/fr/univnantes/alma/model/square/Square.java
0 → 100644
View file @
7475c871
package
fr.univnantes.alma.model.square
;
/***
* Game board square.
*/
public
abstract
class
Square
{
/**
* Square position.
*/
private
int
position
;
/**
* Create new instance of Square.
* @param position square position
*/
public
Square
(
int
position
)
{
this
.
position
=
position
;
}
/**
* Return the position of the square.
* @return position of the square
*/
public
int
getPosition
()
{
return
position
;
}
}
not-alone-server/src/main/java/fr/univnantes/alma/model/square/TrackedSquare.java
0 → 100644
View file @
7475c871
package
fr.univnantes.alma.model.square
;
public
class
TrackedSquare
extends
Square
{
/**
* Create new instance of Square.
*
* @param position square position
*/
public
TrackedSquare
(
int
position
)
{
super
(
position
);
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment