Skip to content

Commit

Permalink
PEGASUS: Restructure remaining MMShell code into the base code
Browse files Browse the repository at this point in the history
MMTimeValue has been removed, as Common::Timestamp will just be used instead
  • Loading branch information
Matthew Hoops committed Sep 5, 2011
1 parent 74054cf commit 593aec6
Show file tree
Hide file tree
Showing 16 changed files with 79 additions and 294 deletions.
48 changes: 0 additions & 48 deletions engines/pegasus/MMShell/Base_Classes/MMFunctionPtr.cpp

This file was deleted.

51 changes: 0 additions & 51 deletions engines/pegasus/MMShell/Base_Classes/MMFunctionPtr.h

This file was deleted.

60 changes: 0 additions & 60 deletions engines/pegasus/MMShell/Utilities/MMTimeValue.cpp

This file was deleted.

52 changes: 0 additions & 52 deletions engines/pegasus/MMShell/Utilities/MMTimeValue.h

This file was deleted.

43 changes: 0 additions & 43 deletions engines/pegasus/MMShell/Utilities/MMUtilities.h

This file was deleted.

2 changes: 1 addition & 1 deletion engines/pegasus/hotspot.cpp
Expand Up @@ -29,7 +29,7 @@ namespace Pegasus {

HotspotList g_allHotspots;

Hotspot::Hotspot(const tHotSpotID id) : MMIDObject(id) {
Hotspot::Hotspot(const tHotSpotID id) : IDObject(id) {
_spotFlags = kNoHotSpotFlags;
_spotActive = false;
}
Expand Down
4 changes: 2 additions & 2 deletions engines/pegasus/hotspot.h
Expand Up @@ -31,7 +31,7 @@

#include "pegasus/constants.h"
#include "pegasus/types.h"
#include "pegasus/MMShell/Utilities/MMIDObject.h"
#include "pegasus/util.h"

/*
Expand All @@ -46,7 +46,7 @@

namespace Pegasus {

class Hotspot : public MMIDObject {
class Hotspot : public IDObject {
public:
Hotspot(const tHotSpotID);
virtual ~Hotspot();
Expand Down
2 changes: 1 addition & 1 deletion engines/pegasus/items/item.cpp
Expand Up @@ -33,7 +33,7 @@

namespace Pegasus {

Item::Item(const tItemID id, const tNeighborhoodID neighborhood, const tRoomID room, const tDirectionConstant direction) : MMIDObject(id) {
Item::Item(const tItemID id, const tNeighborhoodID neighborhood, const tRoomID room, const tDirectionConstant direction) : IDObject(id) {
_itemNeighborhood = neighborhood;
_itemRoom = room;
_itemDirection = direction;
Expand Down
4 changes: 2 additions & 2 deletions engines/pegasus/items/item.h
Expand Up @@ -28,8 +28,8 @@

#include "common/endian.h"

#include "pegasus/MMShell/Utilities/MMIDObject.h"
#include "pegasus/types.h"
#include "pegasus/util.h"

namespace Common {
class Error;
Expand Down Expand Up @@ -285,7 +285,7 @@ enum tItemType {
*/

class Item : public MMIDObject {
class Item : public IDObject {
public:
Item(const tItemID id, const tNeighborhoodID neighborhood, const tRoomID room, const tDirectionConstant direction);
virtual ~Item();
Expand Down
4 changes: 1 addition & 3 deletions engines/pegasus/module.mk
Expand Up @@ -12,15 +12,13 @@ MODULE_OBJS = \
overview.o \
pegasus.o \
sound.o \
util.o \
video.o \
items/inventory.o \
items/item.o \
items/itemlist.o \
items/biochips/biochipitem.o \
items/inventory/inventoryitem.o \
MMShell/Base_Classes/MMFunctionPtr.o \
MMShell/Utilities/MMTimeValue.o \
MMShell/Utilities/MMUtilities.o \
neighborhood/door.o \
neighborhood/exit.o \
neighborhood/extra.o \
Expand Down
2 changes: 1 addition & 1 deletion engines/pegasus/neighborhood/neighborhood.cpp
Expand Up @@ -32,7 +32,7 @@

namespace Pegasus {

Neighborhood::Neighborhood(PegasusEngine *vm, const Common::String &resName, tNeighborhoodID id) : MMIDObject(id), _vm(vm), _resName(resName) {
Neighborhood::Neighborhood(PegasusEngine *vm, const Common::String &resName, tNeighborhoodID id) : IDObject(id), _vm(vm), _resName(resName) {
GameState.setOpenDoorLocation(kNoRoomID, kNoDirection);
_currentAlternate = 0;
_interruptionFilter = kFilterAllInput;
Expand Down
4 changes: 2 additions & 2 deletions engines/pegasus/neighborhood/neighborhood.h
Expand Up @@ -32,7 +32,7 @@
#include "pegasus/hotspot.h"
#include "pegasus/notification.h"
#include "pegasus/sound.h"
#include "pegasus/MMShell/Utilities/MMIDObject.h"
#include "pegasus/util.h"
#include "pegasus/neighborhood/door.h"
#include "pegasus/neighborhood/exit.h"
#include "pegasus/neighborhood/extra.h"
Expand Down Expand Up @@ -84,7 +84,7 @@ bool operator!=(const tQueueRequest &arg1, const tQueueRequest &arg2);

typedef Common::Queue<tQueueRequest> NeighborhoodActionQueue;

class Neighborhood : public MMIDObject, public NotificationReceiver {
class Neighborhood : public IDObject, public NotificationReceiver {
public:
Neighborhood(PegasusEngine *vm, const Common::String &resName, tNeighborhoodID id);
virtual ~Neighborhood();
Expand Down
2 changes: 1 addition & 1 deletion engines/pegasus/notification.cpp
Expand Up @@ -30,7 +30,7 @@ namespace Pegasus {

typedef tReceiverList::iterator tReceiverIterator;

Notification::Notification(const tNotificationID id, NotificationManager *owner) : MMIDObject(id) {
Notification::Notification(const tNotificationID id, NotificationManager *owner) : IDObject(id) {
_owner = owner;
_currentFlags = kNoNotificationFlags;
if (_owner)
Expand Down
4 changes: 2 additions & 2 deletions engines/pegasus/notification.h
Expand Up @@ -29,7 +29,7 @@
#include "common/list.h"

#include "pegasus/types.h"
#include "pegasus/MMShell/Utilities/MMIDObject.h"
#include "pegasus/util.h"

namespace Pegasus {

Expand All @@ -50,7 +50,7 @@ typedef Common::List<tReceiverEntry> tReceiverList;
A notification can have 32 flags associated with it, which can be user-defined.
*/

class Notification : public MMIDObject {
class Notification : public IDObject {
friend class NotificationManager;

public:
Expand Down

0 comments on commit 593aec6

Please sign in to comment.