Tobias Loose
8de50532f2
Put easing code into Easing.h. Add easing to sliding
2013-12-05 23:06:31 +01:00
Tobias Loose
334454655d
Add Easing code to make scrolling in grid view more fluid
2013-12-05 23:06:31 +01:00
Tobias Loose
0c72bfd4c4
Make deck views toggleable
2013-12-05 23:06:30 +01:00
Tobias Loose
55e0366f19
Move griddeckview implementation into source file
2013-12-05 23:06:30 +01:00
Tobias Loose
667b95f2b8
Refactor gamestatedeckviewer and add a grid view suited...
...
for bigger screens.
2013-12-05 23:06:30 +01:00
Tobias Loose
e90f6fe224
Whitespaces and add button to toggle griv/scrolling view
2013-12-05 23:06:30 +01:00
Dmitry Panin
0d4db9ee54
Fixed bug in alternative cost when playing lands
2013-12-02 04:33:39 +04:00
Dmitry Panin
ae927576c5
Draft of new feature: canplayfromgraveyard
...
this will allow playing cards from graveyard
examples: tbd
2013-12-02 04:20:04 +04:00
Dmitry Panin
f08ddac77b
Fixed formatting
2013-12-02 04:16:25 +04:00
Dmitry Panin
9effa7c975
Slightly changed formatting while investigating src
2013-12-01 01:01:57 +04:00
Dmitry Panin
a70259b5ba
Fixed: Assembly-Worker didn't appear as creature type
...
For artifact creatures the parent type TYPE_ARTIFACT was used
and therefore that creature's subtype wasn't added in full list.
2013-12-01 00:59:16 +04:00
xawotihs
4095676b6b
Fixed memory leak introduced in #555
2013-11-29 22:07:45 +01:00
xawotihs
bedd1e8da8
Merge branch 'valgrind' of https://github.com/ZobyTwo/wagic into ZobyTwo-valgrind
2013-11-29 19:41:46 +01:00
Tobias Loose
031f2dbffb
Fix Valgrind warnings appearing during the test suit.
2013-11-29 18:21:53 +01:00
Tobias Loose
69c6745f53
Make getMenuText() return string.
2013-11-29 13:33:33 +01:00
Tobias Loose
6f083389c2
Speedup MTGAllCards::countByType a bit
2013-11-29 11:51:58 +01:00
Tobias Loose
9ee44ca091
Substitute more char arrays with strings
2013-11-29 11:51:22 +01:00
Tobias Loose
3f0dd987f0
Remove bool CardInstance::hasSubtype(const char * _subtype)
...
There exists bool CardInstance::hasSubtype(const string& _subtype) and the
const char* version converts _subtype into string deeper in the call
hierarchy anyway. So both methods did the same.
2013-11-29 11:43:59 +01:00
Tobias Loose
672b0be7bd
Fix a few string bugs add StartsWith for strings
2013-11-29 11:38:49 +01:00
Tobias Loose
9d5a83d588
Replace more strcmp with std::string::compare or std::string::operator==.
...
This commit also enables TinyXML STL support.
2013-11-28 16:42:29 +01:00
Tobias Loose
5d0d130587
Make MTGGameZone::countByType use string instead of char*
...
and replace strcmp with std::string operator== calls.
2013-11-28 16:42:29 +01:00
Tobias Loose
c85d857604
Replace constness cast
2013-11-28 16:42:29 +01:00
Tobias Loose
f68568cc1e
Replace strcmp with c++ equivalent when comparing std::strings.
2013-11-28 16:42:29 +01:00
xawotihs
a43854420d
Fixed compilation issue on Windows
2013-11-27 20:33:59 +01:00
xawotihs
a695323bc7
Merge pull request #564 from ZobyTwo/cleanup_1
...
Add a few namespaces and fix header guards.
2013-11-25 15:42:18 -08:00
xawotihs
fd6bc95539
Merge pull request #562 from citiral/master
...
Updated deckmenu.cpp to properly render deck description and summary
2013-11-24 10:28:05 -08:00
Tobias Loose
0bb211a581
Remove unused global variables from DeckStats.cpp and add proper...
...
member variable initialization.
2013-11-24 09:18:34 +01:00
Tobias Loose
e0428ac7b0
Avoid more conflicts. We could now do unit builds...
...
and make the linker put every data element and function into its own section.
On linktime, we can output every discarded section and get a list of dead
code (for that build).
2013-11-23 17:04:24 +01:00
Tobias Loose
9f0b70d1c9
Put constans into extra namespace as kBackToMainMenuID...
...
collides with itself. GameStateAwards::kBackToMainMenuID and
GameStateOptions::kBackToMainMenuID define those with different
values.
2013-11-23 16:18:45 +01:00
Dmitry Panin
678a4734bb
Merge pull request #560 from ZobyTwo/dead_code
...
Remove some dead code
2013-11-22 00:09:40 -08:00
Dmitry Panin
052e3abdb8
Small fix in match_and ( [-color1; -color2] was handled incorrectly )
2013-11-22 01:03:07 +04:00
citiral
73c2d17080
Updated deckmenu.cpp to properly render deck description and summary
...
Deck description and statistics were being drawn as black text, this made it invisible as it was rendered over a black background. I made it change the color to white before drawing, so its shown as its suposed to be.(Did the default text color change?)
2013-11-21 20:38:41 +01:00
Tobias Loose
3cee80e3bc
Delete another unused file (GuiMessageBox.cpp)
2013-11-20 14:01:59 +01:00
Tobias Loose
8209716fc9
Remove unused file
2013-11-20 13:53:15 +01:00
Tobias Loose
e76c57d747
Fix some valgrind memcheck warnings. However there remains one...
...
... within the threaded texture cache. Once it is resized, some textures
in GetQuad(...) (WCachedResource.cpp:102/103) have uninitialized widths/heights.
2013-11-20 12:56:33 +01:00
Tobias Loose
bbc310dec7
Remove some dead code
2013-11-20 11:43:27 +01:00
Tobias Loose
35697a65b4
Use style guide
2013-11-20 11:13:35 +01:00
Tobias Loose
6bed1666be
Merge branch 'master' into defines
2013-11-20 11:06:41 +01:00
Tobias Loose
f021866368
Merge remote-tracking branch 'wp/master'
2013-11-20 11:06:28 +01:00
xawotihs
d7e527166c
Merge branch 'show-output-only-for-failing-tests'
2013-11-19 11:14:41 +01:00
Dmitry Panin
6c41e5c92c
Added option (#define CAPTURE_STDERR)
...
if set then the DebugTrace calls only for failing tests are shown
2013-11-19 02:41:30 +04:00
Tobias Loose
82e3ab3977
Merge branch 'cleanup' into defines
...
Merge cleanup codings style commit as i accidentally used that branch as
the base.
2013-11-17 21:06:56 +01:00
Tobias Loose
f2314ca673
Use proposed coding style
2013-11-17 21:05:07 +01:00
Tobias Loose
94c3ac9ad9
Fix FTBFS
2013-11-17 21:02:08 +01:00
Tobias Loose
5419d87e4e
Get rid of two more define groups.
2013-11-17 20:22:03 +01:00
Tobias Loose
446ed20758
Fix typo ActionLayer::receiveEventPlus(...)
...
This method is rarely used, however it returned 0 after adding stuff.
It now returns the sum.
2013-11-17 19:39:46 +01:00
Tobias Loose
7a48c5e087
Fix some cppcheck warnings (mostly style and postfix vs prefix iteration)
2013-11-17 19:36:24 +01:00
Tobias Loose
3ca2f1c1ed
Replace defines in Damage.h with enums.
2013-11-17 17:12:58 +01:00
Tobias Loose
146872797b
ActionElement.h: Replace defines, remove superfluous ";"
...
Defines do not follow scope rules, but enums do. Enum classes
even utilize strong type checking (but i am not sure about compiler
support for c++11 on all target platforms).
2013-11-17 16:08:29 +01:00
Tobias Loose
c6dc51c7d3
Simplify Damage::resolve a bit
2013-11-17 15:37:56 +01:00