Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
FirefighterStarter
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
CHERCHEM Sarah
FirefighterStarter
Commits
12a1de5e
Commit
12a1de5e
authored
7 months ago
by
CHERCHEM Sarah
Browse files
Options
Downloads
Patches
Plain Diff
Create the class BoardElement
parent
72029c60
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/main/java/model/BoardElement.java
+0
-18
0 additions, 18 deletions
src/main/java/model/BoardElement.java
with
0 additions
and
18 deletions
src/main/java/model/BoardElement.java
+
0
−
18
View file @
12a1de5e
...
@@ -5,23 +5,5 @@ import util.Position;
...
@@ -5,23 +5,5 @@ import util.Position;
public
abstract
class
BoardElement
implements
ModelElement
{
public
abstract
class
BoardElement
implements
ModelElement
{
protected
Position
position
;
protected
Position
position
;
public
BoardElement
(
Position
position
)
{
this
.
position
=
position
;
}
@Override
public
Position
getPosition
()
{
return
position
;
}
public
void
setPosition
(
Position
position
)
{
this
.
position
=
position
;
}
public
boolean
isAtPosition
(
Position
position
)
{
return
this
.
position
.
equals
(
position
);
}
public
abstract
String
getType
();
// Ajout de la méthode abstraite
public
abstract
String
toString
();
}
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment