Advanced Interactive Programming - C++ Quick Project

Completed Posted Feb 19, 2014 Paid on delivery
Completed Paid on delivery

The following is a short project which I need to be completely promptly.

You will be provided with a state diagram that shows the behaviour of an AI character within a game.

The AI class contains the data members tested within the transition guards, the member functions to test the guards and the Call-Backs which are invoked when the state is entered and simply display a message saying what the current state is.

The AI’s Update member function invokes the FSM’s Check member function through the pointer fsm ( a data member of AI).

Tasks 1 (60%)

1. Within a Visual Studio C++ project implement the AI Class.

2. Using the FSM, State, Transition & LinkedList classes developed during the practicals, implement the behaviour described within the State Diagram.

3. Within Main

a. Create an instance of AI passing it the arguments (true,100,20) to the constructor.

b. Invoke Update twice

c. Set the AI’s ammunition to zero

d. Invoke Update once

e. Set the AI’s health to zero

f. Invoke Update again

Task 2 (20%)

Create a Test Project within the same solution that tests all the transitions.

Task 3 (20%)

Create a new Project that is a copy of the solution to Task 1. Within this project make the changes necessary to give each state 2 call-backs – the existing call-back that is invoked when the FSM enters a new state and a new call-back that is invoked when the state exists. E.g. We currently have an OnCombat call-back that is invoked when the state moves into the Combat state. The new call-back OnLeaveCombat will be invoked when the FSM leaves the Combat State. The new call-backs simply display their name on the console. Use the same code within main to produce the following output.

See DOC file for al information

Commented code will be required

C++ Programming

Project ID: #5458893

About the project

6 proposals Remote project Active Feb 21, 2014

Awarded to:

Jraml

I am a computer scientist graduated at University of Havana. I am expert in programming languages like C, C++, C#, Java. I also have years of experience programming in Visual Studio. I can make a fast, high qualified, More

£21 GBP in 1 day
(0 Reviews)
2.5

6 freelancers are bidding on average £52 for this job

dobreiiita

Hi, I am C++ expert and can surely help you here with this project. Please communicate so we can discuss it further. Thank you

£149 GBP in 5 days
(113 Reviews)
6.0
szymszteinsl

Hi! I am professional C/C++/C#/Java programmer. I can do this project with highest quality. Best Regards, Szymszteinsl

£36 GBP in 1 day
(12 Reviews)
5.8
akhila27

Requirements are clear. We also checked the attached document. We can do this for you and you will not regret this! Regards, SI

£103 GBP in 21 days
(9 Reviews)
5.5
msabouri

Hello there, I can help you with this project. Please check out my profile for reviews on other projects I've finished and contact me if you are interested. Thank you.

£39 GBP in 1 day
(30 Reviews)
5.2
KingOfPhoenix

Hi, Friend. I have experience in C++ programming. I think I can help you if you can accept my price. Thanks.

£82 GBP in 1 day
(4 Reviews)
4.4
jasqwerty

Hey Jack, if you want this done fast, safe and right, without having your project outsourced to someone else by an Indian lead hunter, I have commercial experience coding in C++, as well as teaching in a university set More

£39 GBP in 1 day
(9 Reviews)
4.3
Jimnik

A proposal has not yet been provided

£18 GBP in 10 days
(2 Reviews)
3.7
tulebaev

A proposal has not yet been provided

£50 GBP in 10 days
(2 Reviews)
1.2