-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This is a manual commit to update master to the demo. Undoing this co…
…mmit should return master to its previous state.
- Loading branch information
NoahSefcik
committed
Apr 12, 2016
1 parent
1d919be
commit f3338a8
Showing
18 changed files
with
4,840 additions
and
224 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
1000-Player A | ||
2000-Player B | ||
5000-Player C | ||
500-New Name | ||
500-New Name | ||
500-New Name | ||
500-New Name | ||
500-New Name | ||
500-New Name | ||
500-New Name | ||
500-New Name | ||
500-New Name | ||
500-New Name | ||
500-New Name | ||
500-New Name | ||
500-New Name | ||
500-New Name | ||
500-New Name | ||
500-New Name | ||
500-New Name | ||
500-New Name | ||
500-New Name | ||
500-New Name | ||
500-New Name | ||
500-New Name | ||
500-New Name | ||
500-New Name | ||
500-New Name | ||
500-New Name | ||
500-New Name | ||
500-New Name | ||
500-New Name | ||
500-New Name | ||
500-New Name | ||
500-New Name | ||
500-New Name | ||
500-New Name | ||
500-New Name | ||
500-New Name | ||
500-New Name | ||
500-New Name | ||
500-New Name | ||
500-New Name | ||
500-New Name | ||
500-New Name | ||
500-New Name | ||
500-New Name | ||
500-New Name | ||
500-New Name | ||
500-New Name | ||
500-New Name | ||
500-New Name | ||
500-New Name | ||
500-New Name | ||
500-New Name | ||
500-New Name | ||
500-New Name | ||
500-New Name | ||
500-New Name | ||
500-New Name | ||
500-New Name | ||
500-New Name | ||
500-New Name | ||
500-New Name | ||
500-New Name | ||
500-New Name | ||
500-New Name | ||
500-New Name | ||
500-New Name | ||
500-New Name | ||
500-New Name | ||
500-New Name | ||
500-New Name | ||
500-New Name |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
/* | ||
* To change this license header, choose License Headers in Project Properties. | ||
* To change this template file, choose Tools | Templates | ||
* and open the template in the editor. | ||
*/ | ||
package edu.uco.sdd.rocketdog.model; | ||
|
||
import javafx.scene.layout.Pane; | ||
import javafx.scene.paint.Color; | ||
import javafx.scene.shape.Rectangle; | ||
import javafx.scene.shape.StrokeType; | ||
|
||
/** | ||
* | ||
* @author Sophia | ||
*/ | ||
public class HealthBar extends Pane { | ||
Rectangle healthBarBorder; | ||
Rectangle innerHealthBar; | ||
double height; | ||
double outerHealthBarWidth; | ||
double innerhealthBarWidth; | ||
|
||
public HealthBar() { | ||
this.height=10; | ||
this.outerHealthBarWidth=60; | ||
this.innerhealthBarWidth=50; | ||
|
||
double posX=0.0; | ||
double posY=0.0; | ||
|
||
healthBarBorder= new Rectangle(posX, posY, outerHealthBarWidth, height);//healthbar outline | ||
|
||
healthBarBorder.setArcHeight(5); | ||
healthBarBorder.setArcWidth(5); | ||
|
||
healthBarBorder.setStroke(Color.BLACK); | ||
healthBarBorder.setWidth(2); | ||
healthBarBorder.setStrokeType(StrokeType.OUTSIDE); | ||
healthBarBorder.setFill(Color.RED); | ||
|
||
innerHealthBar= new Rectangle(posX, posY,innerhealthBarWidth , height);// draws healthbar | ||
innerHealthBar.setStrokeType(StrokeType.OUTSIDE); | ||
innerHealthBar.setFill(Color.GREEN); | ||
|
||
getChildren().addAll(healthBarBorder,innerHealthBar); | ||
|
||
} | ||
|
||
|
||
|
||
} |
Oops, something went wrong.