1 /////////////////////////////////////////////////////////////////////////////// 2 // Copyright (C) 2004-2010 by The Allacrost Project 3 // All Rights Reserved 4 // 5 // This code is licensed under the GNU GPL version 2. It is free software 6 // and you may modify it and/or redistribute it under the terms of this license. 7 // See http://www.gnu.org/copyleft/gpl.html for details. 8 /////////////////////////////////////////////////////////////////////////////// 9 10 /** **************************************************************************** 11 *** \file shop_trade.cpp 12 *** \author Tyler Olsen, roots@allacrost.org 13 *** \brief Source file for trade interface of shop mode 14 *** ***************************************************************************/ 15 16 #include "defs.h" 17 #include "utils.h" 18 19 #include "audio.h" 20 #include "input.h" 21 #include "system.h" 22 #include "video.h" 23 24 #include "global.h" 25 26 #include "shop.h" 27 #include "shop_trade.h" 28 29 using namespace std; 30 31 using namespace hoa_utils; 32 using namespace hoa_audio; 33 using namespace hoa_input; 34 using namespace hoa_system; 35 using namespace hoa_video; 36 using namespace hoa_global; 37 38 namespace hoa_shop { 39 40 namespace private_shop { 41 42 // ***************************************************************************** 43 // ***** TradeInterface class methods 44 // ***************************************************************************** 45 TradeInterface()46TradeInterface::TradeInterface() { 47 TEMP_feature_unavailable.SetStyle(TextStyle("text24")); 48 TEMP_feature_unavailable.SetText(UTranslate("This feature is not yet available.")); 49 } 50 51 52 ~TradeInterface()53TradeInterface::~TradeInterface() { 54 55 } 56 57 58 Initialize()59void TradeInterface::Initialize() { 60 61 } 62 63 64 MakeActive()65void TradeInterface::MakeActive() { 66 67 } 68 69 70 TransactionNotification()71void TradeInterface::TransactionNotification() { 72 73 } 74 75 76 Update()77void TradeInterface::Update() { 78 if (InputManager->ConfirmPress() || InputManager->CancelPress()) { 79 ShopMode::CurrentInstance()->ChangeState(SHOP_STATE_ROOT); 80 } 81 } 82 83 84 Draw()85void TradeInterface::Draw() { 86 VideoManager->Move(512.0f, 405.0f); 87 TEMP_feature_unavailable.Draw(); 88 } 89 90 } // namespace private_shop 91 92 } // namespace hoa_shop 93