boyserk84 / zombie-real-time-strategy-game

Automatically exported from code.google.com/p/zombie-real-time-strategy-game
0 stars 0 forks source link

Code review request #16

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Purpose of code changes on this branch:
Added the "BuildAction." When a Unit is given this action, it will move towards 
a target building and "build" the building until the building's health is full. 
Can also be used to "repair" buildings.

Added "speedBuff" and "attackBuff" to Unit. (These are used to give speed and 
attack bonuses or penalties to units.)

Added UnitStatsLogic, updates the speed and attack buffs based on how much 
health the Unit has left. (A maximum penalty of 50% if the unit has 0 health.)

Added a "Visibility Map" to the game.
- Added a "explored" boolean tag to Cell. Default is false.
- Added VisibilityMapLogic class. Given an entity, it will update the 
visibility map if the entity belongs to the human player. An instance of this 
class is declared in the Controller, and is passed to the EntityLocController. 
The "visibility map" is updated when entities are added to the game or when a 
Unit moves.

When reviewing my code changes, please focus on:

Many bug fixes and code cleanup.

After the review, I'll merge this branch into:
/trunk

Original issue reported on code.google.com by dgg1...@gmail.com on 7 Mar 2011 at 5:32