Pokered Save Editor 2
Pokemon Red & Blue save file editor - Qt 6 C++/QML
Toggle main menu visibility
Loading...
Searching...
No Matches
itemmarketentrygcpokemon.h
Go to the documentation of this file.
1
/*
2
* Copyright 2020 Twilight
3
*
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
* you may not use this file except in compliance with the License.
6
* You may obtain a copy of the License at
7
*
8
* http://www.apache.org/licenses/LICENSE-2.0
9
*
10
* Unless required by applicable law or agreed to in writing, software
11
* distributed under the License is distributed on an "AS IS" BASIS,
12
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
* See the License for the specific language governing permissions and
14
* limitations under the License.
15
*/
16
#pragma once
17
#include "
./itemmarketentry.h
"
18
19
class
GameCornerDBEntry
;
20
class
Storage
;
21
class
PlayerPokemon
;
22
class
PlayerBasics
;
23
31
class
ItemMarketEntryGCPokemon
:
public
ItemMarketEntry
32
{
33
Q_OBJECT
34
35
public
:
36
ItemMarketEntryGCPokemon
(
GameCornerDBEntry
*
toGameCorner
,
PlayerPokemon
*
party
,
Storage
*
storage
);
37
virtual
~ItemMarketEntryGCPokemon
();
38
39
virtual
QString
_name
()
override
;
40
virtual
int
_inStockCount
()
override
;
41
virtual
bool
_canSell
()
override
;
42
virtual
int
_itemWorth
()
override
;
43
virtual
QString
_whichType
()
override
;
44
virtual
int
onCartLeft
()
override
;
45
virtual
int
stackCount
()
override
;
46
47
public
slots:
48
virtual
void
checkout
()
override
;
49
50
public
:
51
static
constexpr
const
char
*
type
=
"gcPokemon"
;
52
GameCornerDBEntry
*
toGameCorner
=
nullptr
;
53
PlayerPokemon
*
party
=
nullptr
;
54
Storage
*
storage
=
nullptr
;
55
};
ItemMarketEntryGCPokemon::_name
virtual QString _name() override
Subtype: compute the display name.
Definition
itemmarketentrygcpokemon.cpp:52
ItemMarketEntryGCPokemon::checkout
virtual void checkout() override
Buy the prize mon (into party/storage).
Definition
itemmarketentrygcpokemon.cpp:137
ItemMarketEntryGCPokemon::_itemWorth
virtual int _itemWorth() override
Subtype: compute the unit value.
Definition
itemmarketentrygcpokemon.cpp:70
ItemMarketEntryGCPokemon::_inStockCount
virtual int _inStockCount() override
Subtype: compute the owned/sellable count.
Definition
itemmarketentrygcpokemon.cpp:60
ItemMarketEntryGCPokemon::party
PlayerPokemon * party
Destination party.
Definition
itemmarketentrygcpokemon.h:53
ItemMarketEntryGCPokemon::stackCount
virtual int stackCount() override
Subtype: new stack slots needed (see note above).
Definition
itemmarketentrygcpokemon.cpp:131
ItemMarketEntryGCPokemon::type
static constexpr const char * type
This row's type key.
Definition
itemmarketentrygcpokemon.h:51
ItemMarketEntryGCPokemon::_canSell
virtual bool _canSell() override
Subtype: compute sellability.
Definition
itemmarketentrygcpokemon.cpp:65
ItemMarketEntryGCPokemon::toGameCorner
GameCornerDBEntry * toGameCorner
The prize definition.
Definition
itemmarketentrygcpokemon.h:52
ItemMarketEntryGCPokemon::~ItemMarketEntryGCPokemon
virtual ~ItemMarketEntryGCPokemon()
Definition
itemmarketentrygcpokemon.cpp:50
ItemMarketEntryGCPokemon::ItemMarketEntryGCPokemon
ItemMarketEntryGCPokemon(GameCornerDBEntry *toGameCorner, PlayerPokemon *party, Storage *storage)
Definition
itemmarketentrygcpokemon.cpp:41
ItemMarketEntryGCPokemon::storage
Storage * storage
Overflow PC storage.
Definition
itemmarketentrygcpokemon.h:54
ItemMarketEntryGCPokemon::_whichType
virtual QString _whichType() override
Subtype: report the type label.
Definition
itemmarketentrygcpokemon.cpp:79
ItemMarketEntryGCPokemon::onCartLeft
virtual int onCartLeft() override
Subtype: how many more may be added.
Definition
itemmarketentrygcpokemon.cpp:84
ItemMarketEntry::ItemMarketEntry
ItemMarketEntry(int compatMoneyCurrency=CompatEither, int compatBuyMode=CompatEither)
Definition
itemmarketentry.cpp:28
PlayerBasics
The trainer's headline values: name, ID, money, coins, badges, starter.
Definition
playerbasics.h:67
PlayerPokemon
The player's active party – a specialized PokemonStorageBox.
Definition
playerpokemon.h:42
Storage
The PC: the item storage box and all 12 Pokemon boxes.
Definition
storage.h:49
itemmarketentry.h
GameCornerDBEntry
One Game Corner prize: a Pokemon or item, its coin price, and level.
Definition
gamecornerdbentry.h:37
projects
app
src
mvc
itemmarket
itemmarketentrygcpokemon.h
Generated by
1.17.0