scummvm/engines/pegasus/chase.h
Eugene Sandulenko adaf5bb3b9 PEGASUS: Import the DVD version patch from GOG.com
Co-Authored-By: Keith Kaisershot <keithkaisershot@gmail.com>
Co-Authored-By: Matthew Hoops <clone2727@gmail.com>
Co-Authored-By: Bastien Bouclet <bastien.bouclet@gmail.com>
2021-03-17 17:32:53 +01:00

84 lines
2.4 KiB
C++

/* ScummVM - Graphic Adventure Engine
*
* ScummVM is the legal property of its developers, whose names
* are too numerous to list here. Please refer to the COPYRIGHT
* file distributed with this source distribution.
*
* Additional copyright for this file:
* Copyright (C) 1995-2013 Presto Studios, Inc.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*
*/
#ifndef PEGASUS_CHASE_H
#define PEGASUS_CHASE_H
#include "pegasus/hotspot.h"
#include "pegasus/interaction.h"
#include "pegasus/notification.h"
#include "pegasus/neighborhood/neighborhood.h"
namespace Pegasus {
// Notification constants.
static const NotificationFlags kChaseEnteredBranchZone = 1;
static const NotificationFlags kChaseExitedBranchZone = kChaseEnteredBranchZone << 1;
static const NotificationFlags kChaseFinished = kChaseExitedBranchZone << 1;
// Time to choose a direction.
static const TimeValue kDecisionTime = 600 * 2;
class ChaseInteraction : public GameInteraction, public NotificationReceiver {
public:
ChaseInteraction(const InteractionID, Neighborhood *, NotificationID, NotificationManager *);
virtual ~ChaseInteraction() {}
virtual void handleInput(const Input &, const Hotspot *);
protected:
virtual void openInteraction();
virtual void initInteraction() {}
virtual void closeInteraction();
virtual void receiveNotification(Notification *, const NotificationFlags);
virtual void setUpBranch() {}
virtual void branchLeft() {}
virtual void branchRight() {}
virtual void dontBranch() {}
virtual void showControlsHint();
virtual void hideControlsHint();
Notification _chaseNotification;
Notification *_neighborhoodNotification;
Picture _steerPict;
private:
bool _directionNeeded;
TurnDirection _turnDirection;
};
} // End of namespace Pegasus
#endif