-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create SoccerPlayerPhase and refactor kicking logic to use phase - see …
- Loading branch information
1 parent
8b58315
commit b544f10
Showing
8 changed files
with
61 additions
and
28 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
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,21 @@ | ||
// Copyright 2023, University of Colorado Boulder | ||
|
||
import Enumeration from '../../../../phet-core/js/Enumeration.js'; | ||
import EnumerationValue from '../../../../phet-core/js/EnumerationValue.js'; | ||
import soccerCommon from '../soccerCommon.js'; | ||
|
||
/** | ||
* SoccerPlayerPhase is used to identify what part of the kicking phase a SoccerPlayer is currently in | ||
* | ||
* @author Matthew Blackman (PhET Interactive Simulations) | ||
*/ | ||
|
||
export class SoccerPlayerPhase extends EnumerationValue { | ||
public static readonly INACTIVE = new SoccerPlayerPhase(); | ||
public static readonly READY = new SoccerPlayerPhase(); | ||
public static readonly POISED = new SoccerPlayerPhase(); | ||
public static readonly KICKING = new SoccerPlayerPhase(); | ||
private static readonly enumeration = new Enumeration( SoccerPlayerPhase ); | ||
} | ||
|
||
soccerCommon.register( 'SoccerPlayerPhase', SoccerPlayerPhase ); |
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