Development of a Partially Complete Java Application

Assignment Help JAVA Programming
Reference no: EM132386817 , Length: 3 Pages

COSC1519 Introduction To Programming Assignment - Development of a Partially Complete Java Application, RMIT University, Australia

1. Background and basics:

You are employed as a programmer by a game developer and, being a fan of programming, you are excited to give your new job your 100% or more. You learn that your first task on the job is to revive a game project named 'AVIANIGHTMARE' that has been abandoned by your predecessor who mysteriously disappeared without a trace.

The original programmer had demonstrated a nearly complete version of the game (27/8/2019 lecture demo) but the company only has an older set of the source files.

Although this is an assignment, you must consider yourself as a professional programmer and Daryl and Gayan as your employers (i.e. the company). It is expected that you will need to independently investigate things such as what types of data some of the provided methods might need, etc. in the Java API Specification and other resources. As it is the case with real-world projects, not everything will be clear at various stages and you are expected to seek clarifications from Daryl or Gayan via the relevant Canvas →Discussion forums. Consider going to the consultation, remedial sessions and mentoring (see Canvas →Announcements for details).

2. Constraints, guidelines and requirements:

Get the code in to Eclipse as shown in the 27/8/2019 lecture follow all of the requirements and guidelines below:

2.1) Assignment context specific constraints that you must follow:

A) Any changes that you make and all code that you write must be restricted to the Enemy.java and Player.java files.

B) You must not create new constructor methods. You must not change the definitions of any existing methods even in Enemy.java or Player.java (you can alter the bodies of methods in Enemy.java and Player.java, if you so wish).

C) You are also awarded marks for placing only the relevant code in the relevant methods (use method names of the provided methods as a guidance).

D) When a data structure is necessary, use only arrays (e.g. no array lists).

E) Every method in Enemy.java and Player.java must have only one return statement and this statement must be the very last statement in the method block.

2.2) Object oriented design constraints that must be demonstrated:

A) All member variables must be explicitly private and non-static. There should be no = (equals) signs where member variables are declared. All member variables must be explicitly initialised in the constructor.

B) Whenever a method refers to a member variable, it must use this. (i.e. "this dot", e.g. this.x).

C) Aside from the main method in the GameManager, there should be no other main methods.

D) You do not need to create methods in addition to those that are provided but if doing so, those methods must be private and not static.

2.3) General good coding practices that must be demonstrated:

A) Your code must be formatted consistently (e.g. use Eclipse→Source menu→Format). Comments should not be formatted in to a vertical strip; add comments on a new line instead.

B) Identifier names must follow common conventions demonstrated in the lectures and in the Java API specification.

D) Add comments and explain in plain-English the purposes of segments of code that you have added. You must not comment every line.

E) If you have any unresolved bugs, you must document these in the approximate locations within which they originate in your code. If you do not have bugs, you must explicitly say that there are none. Note: Being able to recognise bugs is a good thing.

F) Do not use break, continue, static, System.exit... and similar statements.

2.4) Enemy.java requirements: Write code inside suitable existing methods to make the Enemy autonomously follow the Player, as explained in the 27/8/2019 lecture. In the originally provided code, all Enemy objects are created at the same coordinates; you must change this so that each Enemy object is created at the coordinates provided by GameManager at the time the Enemy object is created. The Enemy must access the Player's coordinates via the provided GameManager reference and then follow the Player.

Hint: Start by modifying the Enemy's x and y coordinates so that it moves in some direction then change it to make it follow the Player.

Near every segment of code that you have added, discuss the pros and cons of an alternative implementation (assume alternative implementation must also meet all functional requirements). E.g. what are the pros and cons of using a different set of object member variables. E.g. what are the pros and cons of making the Enemy follow the Player in a different way.

2.5) Player.java requirements: Write code inside suitable existing methods to make the Player autonomously avoid the Enemy objects, as explained in the 27/8/2019 lecture. In the originally provided code, the Player object is created at a fixed coordinate; you must change this so that the Player object is created at the coordinates provided by GameManager at the time the Player object is created.

The Player must access the Enemy coordinates via the provided GameManager reference and then avoid all Enemy objects. Finally, make the necessary changes to display the player-dead.png as its image when the Player dies.

Hint: Start by making the Player avoid just 1 Enemy object and then make it work for an arbitrary number of Enemy objects. Near every segment of code that you have added, discuss the pros and cons of an alternative implementation (assume alternative implementation must also meet all functional requirements). E.g. what are the pros and cons of using a different set of object member variables. E.g. what are the pros and cons of making the Player avoid the Enemy objects in a different way.

When in doubt, you are required to ask either Daryl or Gayan via the relevant Canvas → Discussions forums. Clarifications will not be made via email as it is not equitable.

Attachment:- Programming Assignment File.rar

Reference no: EM132386817

Questions Cloud

What is the probability that a randomly selected pecan tree : The heights of pecan trees are normally distributed with a mean of 10 feet and a standard deviation of 2 feet.
Find the value of the parameter : Assume this distribution follows the Poisson Distribution. (a) Find the value of the parameter
Prepare the balance sheet for the fiscal year : Prepare the Balance Sheet for the fiscal year. There are additional lines in the formatted Balance Sheet form to allow for authorized alternate presentations.
What are some of the training and development challenges : What are some of the training and development challenges associated with high employee turnover? Why should a task analysis be performed to address.
Development of a Partially Complete Java Application : COSC1519 Introduction To Programming Assignment Help and Solution - RMIT University, Australia - Development of a Partially Complete Java Application
Find the mean-variance and standard deviation : a. Find the mean, variance and standard deviation of the number of donors (out of 300) who have blood type AB.
Compute and compare the net present value : BU 610 - Finance and Accounting for Decision-Making - Herzing University - Compute and compare the net present value and payback period of each option
What is the probability of an individual : 1) Given the above information, what is the probability of an individual in the ward not being a smoker and having lung cancer?
What amount of maintenance total cost is allocated : All allocations are based on total employees. Cafeteria Services has costs of $180,000 and Maintenance has costs of $240,000 before any allocations.

Reviews

Write a Review

JAVA Programming Questions & Answers

  Employeeexception class whose constructor receives string

Create an EmployeeException class whose constructor receives a String that consists of an employee's ID and pay rate. Save the file as EmployeeException.java.

  Extract medication information from discharge summaries

Extract medication information from discharge summaries using opennlp API. In this assignment the data needs to inputted in the form of text file

  Extend the vending machine

Your task for this assignment is to extend the "Vending Machine" you wrote for assignment seven to add the ability to hold the snacks

  Explain java stack and heap

I am posting the questions as reference, but I am requesting information about how to do these types of questions generally, not to have them done for me.

  Why is the order of the execution of two processes important

Modify the code so that the senderReceiver process sends then receives repeatedly suspending itself for 3 seconds between each iteration.

  Implement a deque

Can someone hep me format this properly? I can't figure it out / not sure if it is even remotely correct. I'm trying to

  Compare the readability and writability of for loop in java

Search the internet about the properties of the for loop in Ada, compare the readability, writability and reliability of the for loop in Ada and Java. Explain your answer

  Create a program that keeps track

Create a program that keeps track of specific information for Students. The information stored should be the following: First Name, Last

  What is an illustration of a javascriptr framework in the

what is an example of a javascriptr framework? in the framework you have described what is an example of an application

  Design a random testing scheme for the method function

Design a random testing scheme for the method function. Provide either a verbal explanation of your scheme (250 words or less) or pseudocode.

  Complier error and run time error

Q1. What do you understand by complier error and run time error? Explain by example.

  Program that reads a number in inches converts it to meter

CMP 330 Data Structures & Algorithm Analysis - Write a Java program to convert temperature from Fahrenheit to Celsius degree

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd