From: Andres R. <ar...@us...> - 2002-07-01 20:20:19
|
areinot 2002/07/01 13:20:17 PDT Modified files: src BaseProjectileWeapon.h GameState.cpp Log: New feature: Shotgun. NOTE: I moved BaseWeaponObject's reload() to be protected so that the shotgun could define it's own createBullet function. the problem is that the Shotgun shoots 10 pellets, which should decrement the ammo by only 1 bullet. Any better ideas that don't mess with BaseWeapon are welcome. Revision Changes Path 1.2 +2 -1 midworld/src/BaseProjectileWeapon.h 1.8 +2 -0 midworld/src/GameState.cpp http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/isugamedev/midworld/src/BaseProjectileWeapon.h.diff?r1=1.1&r2=1.2&diff_format=h http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/isugamedev/midworld/src/GameState.cpp.diff?r1=1.7&r2=1.8&diff_format=h |