Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
M
magicseteditor
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
MyCard
magicseteditor
Commits
54916c4a
Commit
54916c4a
authored
Oct 07, 2006
by
twanvl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
changes to data formats: now using Packaged, implemented more things
parent
e20e0627
Changes
9
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
78 additions
and
3 deletions
+78
-3
src/data/action/symbol.cpp
src/data/action/symbol.cpp
+2
-0
src/data/action/symbol_part.cpp
src/data/action/symbol_part.cpp
+3
-0
src/data/card.cpp
src/data/card.cpp
+2
-0
src/data/card.hpp
src/data/card.hpp
+2
-0
src/data/game.cpp
src/data/game.cpp
+4
-0
src/data/game.hpp
src/data/game.hpp
+5
-1
src/data/set.hpp
src/data/set.hpp
+5
-2
src/data/symbol.cpp
src/data/symbol.cpp
+3
-0
src/mse.vcproj
src/mse.vcproj
+52
-0
No files found.
src/data/action/symbol.cpp
View file @
54916c4a
...
...
@@ -13,6 +13,8 @@ typedef pair<SymbolPartP,SymbolPartCombine> pair_part_combine_t;
typedef
pair
<
SymbolPartP
,
size_t
>
pair_part_size_t
;
DECLARE_TYPEOF_COLLECTION
(
pair_part_combine_t
);
DECLARE_TYPEOF_COLLECTION
(
pair_part_size_t
);
DECLARE_TYPEOF_COLLECTION
(
SymbolPartP
);
DECLARE_TYPEOF_COLLECTION
(
ControlPointP
);
// ----------------------------------------------------------------------------- : Moving symbol parts
...
...
src/data/action/symbol_part.cpp
View file @
54916c4a
...
...
@@ -8,7 +8,9 @@
#include <data/action/symbol_part.hpp>
#include <gfx/bezier.hpp>
DECLARE_TYPEOF_COLLECTION
(
Vector2D
);
DECLARE_TYPEOF_COLLECTION
(
ControlPointP
);
// ----------------------------------------------------------------------------- : Utility
...
...
@@ -324,6 +326,7 @@ void SinglePointRemoveAction::perform(bool toUndo) {
}
DECLARE_POINTER_TYPE
(
SinglePointRemoveAction
);
DECLARE_TYPEOF_COLLECTION
(
SinglePointRemoveActionP
);
// Remove a set of points from a symbol part.
...
...
src/data/card.cpp
View file @
54916c4a
...
...
@@ -11,6 +11,8 @@
#include <data/field.hpp>
#include <util/error.hpp>
DECLARE_TYPEOF_COLLECTION
(
FieldP
);
// ----------------------------------------------------------------------------- : Card
IMPLEMENT_DYNAMIC_ARG
(
Game
*
,
game_for_new_cards
,
nullptr
);
...
...
src/data/card.hpp
View file @
54916c4a
...
...
@@ -14,7 +14,9 @@
#include <util/dynamic_arg.hpp>
class
Game
;
#ifndef HEADER_DATA_GAME
DECLARE_POINTER_TYPE
(
Field
);
#endif
DECLARE_POINTER_TYPE
(
Value
);
DECLARE_POINTER_TYPE
(
CardStyle
);
...
...
src/data/game.cpp
View file @
54916c4a
...
...
@@ -9,3 +9,7 @@
#include <data/game.hpp>
// ----------------------------------------------------------------------------- : Game
bool
Game
::
isMagic
()
const
{
return
name
()
==
_
(
"magic"
);
}
\ No newline at end of file
src/data/game.hpp
View file @
54916c4a
...
...
@@ -10,6 +10,7 @@
// ----------------------------------------------------------------------------- : Includes
#include <util/prec.hpp>
#include <util/io/package.hpp>
#ifndef HEADER_DATA_CARD
DECLARE_POINTER_TYPE
(
Field
);
...
...
@@ -17,12 +18,15 @@ DECLARE_POINTER_TYPE(Field);
// ----------------------------------------------------------------------------- : Game
class
Game
{
class
Game
:
public
Packaged
{
public:
String
fullName
;
String
iconFilename
;
vector
<
FieldP
>
setFields
;
vector
<
FieldP
>
cardFields
;
// Is this Magic the Gathering?
bool
isMagic
()
const
;
};
// ----------------------------------------------------------------------------- : EOF
...
...
src/data/set.hpp
View file @
54916c4a
...
...
@@ -12,6 +12,7 @@
#include <util/prec.hpp>
#include <util/reflect.hpp>
#include <util/action_stack.hpp>
#include <util/io/package.hpp>
DECLARE_POINTER_TYPE
(
Card
);
DECLARE_POINTER_TYPE
(
Set
);
...
...
@@ -20,7 +21,7 @@ DECLARE_POINTER_TYPE(Game);
// ----------------------------------------------------------------------------- : Set
/// A set of cards
class
Set
{
class
Set
:
public
Packaged
{
public:
/// The game this set uses
GameP
game
;
...
...
@@ -52,8 +53,10 @@ class SetView : public ActionListener {
/// The set that is currently being viewed, should not be modified directly!
SetP
set
;
/// Called when another set is being view
n
(using setSet)
/// Called when another set is being view
ed
(using setSet)
virtual
void
onChangeSet
()
{}
/// Called when just before another set is being viewed (using setSet)
virtual
void
onBeforeChangeSet
()
{}
};
...
...
src/data/symbol.cpp
View file @
54916c4a
...
...
@@ -9,6 +9,9 @@
#include <data/symbol.hpp>
#include <gfx/bezier.hpp>
DECLARE_TYPEOF_COLLECTION
(
SymbolPartP
);
DECLARE_TYPEOF_COLLECTION
(
ControlPointP
);
// ----------------------------------------------------------------------------- : ControlPoint
IMPLEMENT_REFLECTION_ENUM
(
LockMode
)
{
...
...
src/mse.vcproj
View file @
54916c4a
...
...
@@ -322,15 +322,33 @@
<Filter
Name=
"set"
Filter=
""
>
<File
RelativePath=
".\gui\set\cards_panel.cpp"
>
</File>
<File
RelativePath=
".\gui\set\cards_panel.hpp"
>
</File>
<File
RelativePath=
".\gui\set\panel.hpp"
>
</File>
<File
RelativePath=
".\gui\set\set_info_panel.cpp"
>
</File>
<File
RelativePath=
".\gui\set\set_info_panel.hpp"
>
</File>
<File
RelativePath=
".\gui\set\stats_panel.cpp"
>
</File>
<File
RelativePath=
".\gui\set\stats_panel.hpp"
>
</File>
<File
RelativePath=
".\gui\set\style_panel.cpp"
>
</File>
<File
RelativePath=
".\gui\set\style_panel.hpp"
>
</File>
<File
RelativePath=
".\gui\set\window.cpp"
>
</File>
...
...
@@ -558,6 +576,12 @@
<File
RelativePath=
".\data\set.hpp"
>
</File>
<File
RelativePath=
".\data\settings.cpp"
>
</File>
<File
RelativePath=
".\data\settings.hpp"
>
</File>
<File
RelativePath=
".\data\symbol.cpp"
>
<FileConfiguration
...
...
@@ -616,6 +640,34 @@
RelativePath=
".\data\action\symbol_part.hpp"
>
</File>
</Filter>
<Filter
Name=
"format"
Filter=
""
>
<File
RelativePath=
".\data\format\apprentice.cpp"
>
</File>
<File
RelativePath=
".\data\format\formats.cpp"
>
</File>
<File
RelativePath=
".\data\format\formats.hpp"
>
</File>
<File
RelativePath=
".\data\format\html.cpp"
>
</File>
<File
RelativePath=
".\data\format\mse1.cpp"
>
</File>
<File
RelativePath=
".\data\format\mse2.cpp"
>
</File>
<File
RelativePath=
".\data\format\mtg_editor.cpp"
>
</File>
<File
RelativePath=
".\data\format\mws.cpp"
>
</File>
</Filter>
</Filter>
<Filter
Name=
"util"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment