Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
NetworkedGraphicsMV3500
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Savage
NetworkedGraphicsMV3500
Commits
ecdfac42
Commit
ecdfac42
authored
3 years ago
by
User
Browse files
Options
Downloads
Patches
Plain Diff
HW3 error
parent
b0890283
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
assignments/src/MV3500Cohort2021JulySeptember/homework3/Leckie/homework3Leckie.java
+14
-11
14 additions, 11 deletions
...rt2021JulySeptember/homework3/Leckie/homework3Leckie.java
with
14 additions
and
11 deletions
assignments/src/MV3500Cohort2021JulySeptember/homework3/Leckie/homework3Leckie.java
+
14
−
11
View file @
ecdfac42
package
MV3500Cohort2021JulySeptember.homework3.Leckie
;
/**
*
* @author Jacob Leckie
*/
/**
* Copyright (c) 2008-2021, MOVES Institute, Naval Postgraduate School (NPS). All rights reserved.
* This work is provided under a BSD open-source license, see project license.html and license.txt
*/
package
OpenDis7Examples
;
//package OpenDis7Examples;
import
edu.nps.moves.dis7.enumerations.VariableRecordType
;
import
edu.nps.moves.dis7.pdus.CommentPdu
;
...
...
@@ -25,6 +15,18 @@ import java.util.ArrayList;
import
java.util.logging.Level
;
import
java.util.logging.Logger
;
/**
*
* @author Jacob Leckie
*/
/**
* Copyright (c) 2008-2021, MOVES Institute, Naval Postgraduate School (NPS). All rights reserved.
* This work is provided under a BSD open-source license, see project license.html and license.txt
*/
/** The purpose of this program is to provide an easily modifiable example simulation program
* that includes DIS-capable entities doing tasks and reporting them to the network.
* Default settings include PDU recording turned on by default.
...
...
@@ -83,6 +85,7 @@ public class homework3Leckie
// Where is my entity? Insert changes in position.
entityStatePdu
.
getEntityLocation
().
setX
(
entityStatePdu
.
getEntityLocation
().
getX
()
+
1.0
);
// 1m per timestep
entityStatePdu
.
getEntityOrientation
();
// decide whether to fire, and then update the firePdu. Hmmm, you might want a target to shoort at!
// etc. etc. your code goes here
...
...
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