Pokered Save Editor 2
Pokemon Red & Blue save file editor - Qt 6 C++/QML
Loading...
Searching...
No Matches
itemmarketentrymessage.cpp
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
21
23
24
31
33
35{
36 return msg;
37}
38
40{
41 return 0;
42}
43
45{
46 return false;
47}
48
50{
51 return 0;
52}
53
55{
56 return type;
57}
58
60{
61 return 0;
62}
63
65{
66 return 0;
67}
68
static constexpr const char * type
This row's type key.
virtual int _itemWorth() override
Subtype: compute the unit value.
virtual int stackCount() override
Subtype: new stack slots needed (see note above).
virtual bool _canSell() override
Subtype: compute sellability.
virtual int onCartLeft() override
Subtype: how many more may be added.
QString msg
The displayed message.
virtual void checkout() override
No-op (messages don't transact).
virtual int _inStockCount() override
Subtype: compute the owned/sellable count.
virtual QString _whichType() override
Subtype: report the type label.
virtual QString _name() override
Returns msg.
void finishConstruction()
Finalise construction (register the instance).
bool exclude
Exclude from aggregate totals (see note).