QTfrontend/weapons.h
author koda
Sun, 20 Mar 2016 03:08:51 -0400
changeset 11617 b7d5d75469ee
parent 11516 2d26ad94a731
child 11768 59e979b1408f
permissions -rw-r--r--
Move pixel format conversion from uVideoRec to AVWrapper This has several benefits, being in C-land allows us to better use libav API and avoid mixing memory allocated from Pascal. Also the C code for the conversion loop generated by GCC or Clang is probably more optimized than by Freepascal. Finally it will simplify code in the future if we are going to enable any other pixel format than yuv420p. Change the coefficients to improve color accuracy during conversion.

/*
 * Hedgewars, a free turn based strategy game
 * Copyright (c) 2013 Vittorio Giovara <vittorio.giovara@gmail.com>
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; version 2 of the License
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
 */


/*
 AmmoType lookup table (use monospace font / cursor movements)

 amGrenade-----------------------|
 amClusterBomb--------------------|
 amBazooka-------------------------|
 amBee------------------------------|
 amShotgun---------------------------|
 amPickHammer-------------------------|
 amSkip--------------------------------|
 amRope---------------------------------|
 amMine----------------------------------|
 amDEagle---------------------------------|
 amDynamite--------------------------------|
 amFirePunch--------------------------------|
 amWhip--------------------------------------|
 amBaseballBat--------------------------------|
 amParachute-----------------------------------|
 amAirAttack------------------------------------|
 amMineStrike------------------------------------|
 amBlowTorch--------------------------------------|
 amGirder------------------------------------------|
 amTeleport-----------------------------------------|
 amSwitch--------------------------------------------|
 amMortar---------------------------------------------|
 amKamikaze--------------------------------------------|
 amCake-------------------------------------------------|
 amSeduction---------------------------------------------|
 amWatermelon---------------------------------------------|
 amHellishBomb---------------------------------------------|
 amNapalm---------------------------------------------------|
 amDrill-----------------------------------------------------|
 amBallgun----------------------------------------------------|
 amRCPlane-----------------------------------------------------|
 amLowGravity---------------------------------------------------|
 amExtraDamage---------------------------------------------------|
 amInvulnerable---------------------------------------------------|
 amExtraTime-------------------------------------------------------|
 amLaserSight-------------------------------------------------------|
 amVampiric----------------------------------------------------------|
 amSniperRifle--------------------------------------------------------|
 amJetpack-------------------------------------------------------------|
 amMolotov--------------------------------------------------------------|
 amBirdy-----------------------------------------------------------------|
 amPortalGun--------------------------------------------------------------|
 amPiano-------------------------------------------------------------------|
 amGasBomb------------------------------------------------------------------|
 amSineGun-------------------------------------------------------------------|
 amFlamethrower---------------------------------------------------------------|
 amSMine-----------------------------------------------------------------------|
 amHammer-----------------------------------------------------------------------|
 amResurrector-------------------------------------------------------------------|
 amDrillStrike--------------------------------------------------------------------|
 amSnowball------------------------------------------------------------------------|
 amTardis---------------------------------------------------------------------------|
 amLandGun---------------------------------------------------------------------------|
 amIceGun-----------------------------------------------------------------------------|
 amKnife-------------------------------------------------------------------------------|
 amRubber-------------------------------------------------------------------------------|
 amAirMine-------------------------------------------------------------------------------|
*/
#define AMMOLINE_DEFAULT_QT     "939192942219912103223511100120000000021110010101111100010"
#define AMMOLINE_DEFAULT_PROB   "040504054160065554655446477657666666615551010111541111111"
#define AMMOLINE_DEFAULT_DELAY  "000000000000020550000004000700400000000022000000060002000"
#define AMMOLINE_DEFAULT_CRATE  "131111031211111112311411111111111111121111110111111111111"

#define AMMOLINE_CRAZY_QT       "999999999999999999299999999999999929999999990999999299919"
#define AMMOLINE_CRAZY_PROB     "111111011111111111111111111111111111111111110111111111111"
#define AMMOLINE_CRAZY_DELAY    "000000000000000000000000000000000000000000000000000000000"
#define AMMOLINE_CRAZY_CRATE    "131111031211111112311411111111111111121111010111111111111"

#define AMMOLINE_PROMODE_QT     "909000900000000000000900000000000000000000000000000000000"
#define AMMOLINE_PROMODE_PROB   "000000000000000000000000000000000000000000000000000000000"
#define AMMOLINE_PROMODE_DELAY  "000000000000020550000004000700400000000020000000000002000"
#define AMMOLINE_PROMODE_CRATE  "111111011111111111111111111111111111111110010111111111111"

#define AMMOLINE_SHOPPA_QT      "000000990000000000000000000000000000000000000000000000000"
#define AMMOLINE_SHOPPA_PROB    "444441004424440221011212122242200000000200040001001100101"
#define AMMOLINE_SHOPPA_DELAY   "000000000000000000000000000000000000000000000000000000000"
#define AMMOLINE_SHOPPA_CRATE   "111111011111111111111111111111111111111110110111111111101"

#define AMMOLINE_CLEAN_QT       "101000900001000001100000000000000000000000000000100000000"
#define AMMOLINE_CLEAN_PROB     "040504054160065554655446477657666666615551010111541112111"
#define AMMOLINE_CLEAN_DELAY    "000000000000000000000000000000000000000000000000000002000"
#define AMMOLINE_CLEAN_CRATE    "131111031211111112311411111111111111121111110111111111111"

#define AMMOLINE_MINES_QT       "000000990009000000030000000000000000000000000000000000000"
#define AMMOLINE_MINES_PROB     "000000000000000000000000000000000000000000000000000000000"
#define AMMOLINE_MINES_DELAY    "000000000000020550000004000700400000000020000000060002000"
#define AMMOLINE_MINES_CRATE    "111111011111111111111111111111111111111111110111111111111"

#define AMMOLINE_PORTALS_QT     "900000900200000000210000000000000011000009000000000000000"
#define AMMOLINE_PORTALS_PROB   "040504054160065554655446477657666666615551010111541112111"
#define AMMOLINE_PORTALS_DELAY  "000000000000020550000004000700400000000020000000060002000"
#define AMMOLINE_PORTALS_CRATE  "131111031211111112311411111111111111121111110111111111111"

#define AMMOLINE_ONEEVERY_QT    "111111911111111111111111111111111111111111111111111111111"
#define AMMOLINE_ONEEVERY_PROB  "111111011111111111111111111111111111111111111111111111111"
#define AMMOLINE_ONEEVERY_DELAY "000000000000000000000000000000000000000000000000000000000"
#define AMMOLINE_ONEEVERY_CRATE "111111011111111111111111111111111111111111111111111111111"

#define AMMOLINE_HIGHLANDER_QT    "111111911111111111110191111111111001011111011110110011010"
#define AMMOLINE_HIGHLANDER_PROB  "000000000000000000000000000000000000000000000000000000000"
#define AMMOLINE_HIGHLANDER_DELAY "000000000000000000000000000000000000000000000000000000000"
#define AMMOLINE_HIGHLANDER_CRATE "000000000000000000000000000000000000000000000000000000000"

#define AMMOLINE_CONSTRUCTION_QT    "110001900000001001000000000000000000000000000000000000000"
#define AMMOLINE_CONSTRUCTION_PROB  "111111011111111111111111111111111111111111111111111111110"
#define AMMOLINE_CONSTRUCTION_DELAY "000000000000000000000000000000000000000000000000000000000"
#define AMMOLINE_CONSTRUCTION_CRATE "111111011111111111111111111111111111111111111111111111110"

#define AMMOLINE_SHOPPAPRO_QT      "000000990000000000000000000000000000000000000000000000000"
#define AMMOLINE_SHOPPAPRO_PROB    "444440004404440000000000000040000000000000000000000000000"
#define AMMOLINE_SHOPPAPRO_DELAY   "000000000000000000000000000000000000000000000000000000000"
#define AMMOLINE_SHOPPAPRO_CRATE   "111111011111111111111111111111111111111110110111111112110"


//When adding new weapons also insert one element in cDefaultAmmos list (hwconsts.cpp.in)