Title: Clean weapons code [...]
Commit from gentildemon on branch CL07 2004-08-28 01:48 CEST
Clean weapons code

Stock number of "bullets" for each weapon in a map (hashtable) for each team
instead of using multiples variables in team.h

Using only one progress bar for every weapon which need one. The time for loading
is now a constant fixed to 2 seconds.

Strength save for each character (instead of team). Only one strength is saved.
So, no need to add a variable for stocking the previous strength of a new coded
weapon

The weapon position is now function of the hand. Currently, this is still buggy
and only the Alien skin has been updated with the newly corrected syntax for the
xml.

Export WeaponMenu from Wormux CVS to Wormux CL07

Complete rewrite of keyboad.cpp. Now, no more if(armeBAZOOKA) or anything else
like this :-) Much better !!

Better use of inheritence in weapon.(h|cpp)

TODO : A LOT (rewrite mouse.cpp, ...)
Module File name Revision
wormux data/graphism.scr 1.2.2.8 >>> 1.2.2.9
wormux data/sound.scr 1.2.2.1 >>> 1.2.2.2
wormux data/skin/alien/config.xml 1.1.2.0 >>> 1.1.2.1
wormux data/weapon/bazooka.png 1.1.2.0 >>> 1.1.2.1
wormux data/weapon/grenade.png 1.1.2.0 >>> 1.1.2.1
wormux data/weapon/missile.png 1.1.2.0 >>> 1.1.2.1
wormux src/main.cpp 1.2.2.7 >>> 1.2.2.8
wormux src/game/game.cpp 1.2.2.1 >>> 1.2.2.2
wormux src/game/game_mode.cpp 1.1.2.0 >>> 1.1.2.1
wormux src/interface/interface.cpp 1.1.2.3 >>> 1.1.2.4
wormux src/interface/interface.h 1.1.2.2 >>> 1.1.2.3
wormux src/interface/keyboard.cpp 1.1.2.1 >>> 1.1.2.2
wormux src/interface/keyboard.h 1.1.2.1 >>> 1.1.2.2
wormux src/interface/mouse.cpp 1.1.2.3 >>> 1.1.2.4
+ wormux src/interface/weapon_menu.cpp 1.2.2.1
+ wormux src/interface/weapon_menu.h 1.2.2.1
wormux src/object/bonus_box.cpp 1.2.2.2 >>> 1.2.2.3
wormux src/sound/jukebox.cpp 1.1.2.3 >>> 1.1.2.4
wormux src/team/character.h 1.1.2.2 >>> 1.1.2.3
wormux src/team/skin.cpp 1.1.2.3 >>> 1.1.2.4
wormux src/team/skin.h 1.1.2.2 >>> 1.1.2.3
wormux src/team/team.cpp 1.1.2.4 >>> 1.1.2.5
wormux src/team/team.h 1.1.2.4 >>> 1.1.2.5
wormux src/weapon/air_attack.cpp 1.2.2.2 >>> 1.2.2.3
wormux src/weapon/auto_bazooka.cpp 1.1.2.3 >>> 1.1.2.4
wormux src/weapon/auto_bazooka.h 1.1.2.1 >>> 1.1.2.2
wormux src/weapon/baseball.cpp 1.1.2.2 >>> 1.1.2.3
wormux src/weapon/bazooka.cpp 1.1.2.3 >>> 1.1.2.4
wormux src/weapon/bazooka.h 1.1.2.1 >>> 1.1.2.2
wormux src/weapon/dynamite.cpp 1.1.2.2 >>> 1.1.2.3
wormux src/weapon/grenade.cpp 1.2.2.4 >>> 1.2.2.5
wormux src/weapon/grenade.h 1.1.2.1 >>> 1.1.2.2
wormux src/weapon/gun.cpp 1.1.2.3 >>> 1.1.2.4
wormux src/weapon/mine.cpp 1.2.2.3 >>> 1.2.2.4
wormux src/weapon/suicide.cpp 1.1.2.2 >>> 1.1.2.3
wormux src/weapon/teleportation.cpp 1.1.2.3 >>> 1.1.2.4
wormux src/weapon/weapon.cpp 1.2.2.3 >>> 1.2.2.4
wormux src/weapon/weapon.h 1.1.2.1 >>> 1.1.2.2
wormux src/weapon/weapon_tools.cpp 1.1.2.2 >>> 1.1.2.3
wormux src/weapon/weapon_tools.h 1.1.2.1 >>> 1.1.2.2
wormux src/weapon/weapons_list.cpp 1.1.2.1 >>> 1.1.2.2
wormux src/weapon/weapons_list.h 1.1.2.0 >>> 1.1.2.1


Reply via email to