viveanban / Risk

COMP 345 Project
0 stars 0 forks source link

Orders List #3

Closed viveanban closed 3 years ago

viveanban commented 4 years ago

Implement a group of C++ classes that implement a Warzone player orders using the following design: Orders are created by the player during their turn and placed into the player’s list of orders. By default, each order is placed in the list sequentially. After orders are put in the list, the player can move them around in the list (using the move()method) or delete them (using the delete()method). The different kinds of orders are: deploy, advance, bomb, blockade, airlift, and negotiate. All orders must have a validate()method that verifies if the order is valid.All orders must have an execute() method that will result in some game action being implemented (see the project description document. Note that the orders’ actions do not need to be implemented at this point). Invalid orders can be created and put in the list, but their execution will not result in any action. All the classes/functions that you implement for this component must all reside in a single .cpp/.hfile duo named Orders.cpp/Orders.h. You must deliver a file named OrdersDriver.cppfile that contains a main function that creates a list of orders and demonstrates that the OrdersList implemented according to the followingspecifications:

imabhijit commented 4 years ago

Pr: https://github.com/viveanban/Risk/pull/21

ferdousara-parvin commented 4 years ago

Look into stream insertion operator, copy constructor and assignment operator