Skip to content

Commit

Permalink
ENGINES: Create initial base engine for KotOR games
Browse files Browse the repository at this point in the history
  • Loading branch information
vkremianskii authored and DrMcCoy committed Feb 12, 2019
1 parent c9c6e96 commit b1fe3a6
Show file tree
Hide file tree
Showing 77 changed files with 523 additions and 1,060 deletions.
2 changes: 1 addition & 1 deletion src/engines/kotor/action.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
#ifndef ENGINES_KOTOR_ACTION_H
#define ENGINES_KOTOR_ACTION_H

#include "src/engines/kotor/types.h"
#include "src/engines/kotorbase/types.h"

namespace Engines {

Expand Down
3 changes: 2 additions & 1 deletion src/engines/kotor/area.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,9 @@
#include "src/engines/aurora/util.h"
#include "src/engines/aurora/localpathfinding.h"

#include "src/engines/kotorbase/room.h"

#include "src/engines/kotor/area.h"
#include "src/engines/kotor/room.h"
#include "src/engines/kotor/module.h"
#include "src/engines/kotor/waypoint.h"
#include "src/engines/kotor/placeable.h"
Expand Down
3 changes: 2 additions & 1 deletion src/engines/kotor/area.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@
#include "src/events/types.h"
#include "src/events/notifyable.h"

#include "src/engines/kotor/object.h"
#include "src/engines/kotorbase/object.h"

#include "src/engines/kotor/trigger.h"

namespace Engines {
Expand Down
3 changes: 2 additions & 1 deletion src/engines/kotor/console.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,12 @@

#include "src/graphics/aurora/types.h"

#include "src/engines/kotorbase/room.h"

#include "src/engines/kotor/console.h"
#include "src/engines/kotor/kotor.h"
#include "src/engines/kotor/game.h"
#include "src/engines/kotor/module.h"
#include "src/engines/kotor/room.h"
#include "src/engines/kotor/area.h"

namespace Engines {
Expand Down
3 changes: 2 additions & 1 deletion src/engines/kotor/creature.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@

#include "src/graphics/aurora/types.h"

#include "src/engines/kotor/object.h"
#include "src/engines/kotorbase/object.h"

#include "src/engines/kotor/inventory.h"
#include "src/engines/kotor/action.h"

Expand Down
3 changes: 2 additions & 1 deletion src/engines/kotor/gui/chargen/chargeninfo.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@

#include "src/graphics/aurora/model.h"

#include "src/engines/kotor/types.h"
#include "src/engines/kotorbase/types.h"

#include "src/engines/kotor/creature.h"

namespace Engines {
Expand Down
2 changes: 1 addition & 1 deletion src/engines/kotor/item.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
#ifndef ENGINES_KOTOR_ITEM_H
#define ENGINES_KOTOR_ITEM_H

#include "src/engines/kotor/object.h"
#include "src/engines/kotorbase/object.h"

namespace Engines {

Expand Down
3 changes: 2 additions & 1 deletion src/engines/kotor/module.h
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,9 @@

#include "src/events/types.h"

#include "src/engines/kotorbase/object.h"

#include "src/engines/kotor/objectcontainer.h"
#include "src/engines/kotor/object.h"
#include "src/engines/kotor/savedgame.h"

namespace Engines {
Expand Down
3 changes: 2 additions & 1 deletion src/engines/kotor/objectcontainer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,9 @@
#include "src/common/types.h"
#include "src/common/util.h"

#include "src/engines/kotorbase/object.h"

#include "src/engines/kotor/objectcontainer.h"
#include "src/engines/kotor/object.h"
#include "src/engines/kotor/module.h"
#include "src/engines/kotor/area.h"
#include "src/engines/kotor/waypoint.h"
Expand Down
2 changes: 1 addition & 1 deletion src/engines/kotor/objectcontainer.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@

#include "src/aurora/nwscript/objectcontainer.h"

#include "src/engines/kotor/types.h"
#include "src/engines/kotorbase/types.h"

namespace Engines {

Expand Down
3 changes: 2 additions & 1 deletion src/engines/kotor/pathfinding.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,9 @@

#include "src/engines/aurora/astar.h"

#include "src/engines/kotorbase/room.h"

#include "src/engines/kotor/walkmeshloader.h"
#include "src/engines/kotor/room.h"
#include "src/engines/kotor/pathfinding.h"

namespace Engines {
Expand Down
5 changes: 0 additions & 5 deletions src/engines/kotor/rules.mk
Original file line number Diff line number Diff line change
Expand Up @@ -25,20 +25,17 @@ src_engines_kotor_libkotor_la_SOURCES =
src_engines_kotor_libkotor_la_SOURCES += \
src/engines/kotor/kotor.h \
src/engines/kotor/probes.h \
src/engines/kotor/types.h \
src/engines/kotor/console.h \
src/engines/kotor/modelloader.h \
src/engines/kotor/version.h \
src/engines/kotor/game.h \
src/engines/kotor/object.h \
src/engines/kotor/situated.h \
src/engines/kotor/waypoint.h \
src/engines/kotor/placeable.h \
src/engines/kotor/door.h \
src/engines/kotor/creature.h \
src/engines/kotor/sound.h \
src/engines/kotor/area.h \
src/engines/kotor/room.h \
src/engines/kotor/objectcontainer.h \
src/engines/kotor/module.h \
src/engines/kotor/item.h \
Expand All @@ -61,15 +58,13 @@ src_engines_kotor_libkotor_la_SOURCES += \
src/engines/kotor/modelloader.cpp \
src/engines/kotor/version.cpp \
src/engines/kotor/game.cpp \
src/engines/kotor/object.cpp \
src/engines/kotor/waypoint.cpp \
src/engines/kotor/situated.cpp \
src/engines/kotor/placeable.cpp \
src/engines/kotor/door.cpp \
src/engines/kotor/creature.cpp \
src/engines/kotor/sound.cpp \
src/engines/kotor/area.cpp \
src/engines/kotor/room.cpp \
src/engines/kotor/objectcontainer.cpp \
src/engines/kotor/module.cpp \
src/engines/kotor/item.cpp \
Expand Down
4 changes: 2 additions & 2 deletions src/engines/kotor/script/function_tables.h
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@
#ifndef ENGINES_KOTOR_SCRIPT_FUNCTION_TABLES_H
#define ENGINES_KOTOR_SCRIPT_FUNCTION_TABLES_H

#include "src/engines/kotor/types.h"
#include "src/engines/kotor/object.h"
#include "src/engines/kotorbase/types.h"
#include "src/engines/kotorbase/object.h"

namespace Engines {

Expand Down
5 changes: 3 additions & 2 deletions src/engines/kotor/script/functions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,13 @@
#include "src/aurora/nwscript/functionman.h"
#include "src/aurora/nwscript/util.h"

#include "src/engines/kotor/types.h"
#include "src/engines/kotorbase/types.h"
#include "src/engines/kotorbase/object.h"

#include "src/engines/kotor/game.h"
#include "src/engines/kotor/module.h"
#include "src/engines/kotor/area.h"
#include "src/engines/kotor/objectcontainer.h"
#include "src/engines/kotor/object.h"

#include "src/engines/kotor/script/functions.h"

Expand Down
3 changes: 2 additions & 1 deletion src/engines/kotor/script/functions_action.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@

#include "src/aurora/nwscript/functioncontext.h"

#include "src/engines/kotor/types.h"
#include "src/engines/kotorbase/types.h"

#include "src/engines/kotor/game.h"
#include "src/engines/kotor/module.h"
#include "src/engines/kotor/objectcontainer.h"
Expand Down
3 changes: 2 additions & 1 deletion src/engines/kotor/script/functions_creatures.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@

#include "src/aurora/nwscript/functioncontext.h"

#include "src/engines/kotor/types.h"
#include "src/engines/kotorbase/types.h"

#include "src/engines/kotor/creature.h"
#include "src/engines/kotor/objectcontainer.h"

Expand Down
5 changes: 3 additions & 2 deletions src/engines/kotor/script/functions_object.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,12 @@

#include "src/aurora/nwscript/functioncontext.h"

#include "src/engines/kotor/types.h"
#include "src/engines/kotorbase/types.h"
#include "src/engines/kotorbase/object.h"

#include "src/engines/kotor/game.h"
#include "src/engines/kotor/module.h"
#include "src/engines/kotor/objectcontainer.h"
#include "src/engines/kotor/object.h"
#include "src/engines/kotor/placeable.h"
#include "src/engines/kotor/area.h"

Expand Down
5 changes: 3 additions & 2 deletions src/engines/kotor/script/functions_party.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,12 @@

#include "src/aurora/nwscript/functioncontext.h"

#include "src/engines/kotor/types.h"
#include "src/engines/kotorbase/types.h"
#include "src/engines/kotorbase/object.h"

#include "src/engines/kotor/game.h"
#include "src/engines/kotor/module.h"
#include "src/engines/kotor/objectcontainer.h"
#include "src/engines/kotor/object.h"

#include "src/engines/kotor/script/functions.h"

Expand Down
3 changes: 2 additions & 1 deletion src/engines/kotor/script/functions_situated.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,9 @@

#include "src/aurora/nwscript/functioncontext.h"

#include "src/engines/kotorbase/object.h"

#include "src/engines/kotor/objectcontainer.h"
#include "src/engines/kotor/object.h"
#include "src/engines/kotor/situated.h"

#include "src/engines/kotor/script/functions.h"
Expand Down
3 changes: 2 additions & 1 deletion src/engines/kotor/script/functions_sound.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,9 @@

#include "src/aurora/nwscript/functioncontext.h"

#include "src/engines/kotorbase/object.h"

#include "src/engines/kotor/objectcontainer.h"
#include "src/engines/kotor/object.h"
#include "src/engines/kotor/area.h"
#include "src/engines/kotor/sound.h"

Expand Down
3 changes: 2 additions & 1 deletion src/engines/kotor/script/functions_string.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,9 @@

#include "src/engines/aurora/tokenman.h"

#include "src/engines/kotorbase/object.h"

#include "src/engines/kotor/objectcontainer.h"
#include "src/engines/kotor/object.h"
#include "src/engines/kotor/creature.h"

#include "src/engines/kotor/script/functions.h"
Expand Down
2 changes: 0 additions & 2 deletions src/engines/kotor/script/rules.mk
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,12 @@
# Scripting system in Star Wars: Knights of the Old Republic.

src_engines_kotor_libkotor_la_SOURCES += \
src/engines/kotor/script/container.h \
src/engines/kotor/script/functions.h \
src/engines/kotor/script/function_tables.h \
src/engines/kotor/script/event.h \
$(EMPTY)

src_engines_kotor_libkotor_la_SOURCES += \
src/engines/kotor/script/container.cpp \
src/engines/kotor/script/functions.cpp \
src/engines/kotor/script/functions_math.cpp \
src/engines/kotor/script/functions_string.cpp \
Expand Down
2 changes: 1 addition & 1 deletion src/engines/kotor/situated.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@

#include "src/graphics/aurora/types.h"

#include "src/engines/kotor/object.h"
#include "src/engines/kotorbase/object.h"

namespace Engines {

Expand Down
2 changes: 1 addition & 1 deletion src/engines/kotor/sound.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@

#include "src/events/timerman.h"

#include "src/engines/kotor/object.h"
#include "src/engines/kotorbase/object.h"

namespace Engines {

Expand Down
2 changes: 1 addition & 1 deletion src/engines/kotor/trigger.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@

#include "src/engines/aurora/trigger.h"

#include "src/engines/kotor/object.h"
#include "src/engines/kotorbase/object.h"

namespace Engines {

Expand Down
4 changes: 2 additions & 2 deletions src/engines/kotor/waypoint.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@

#include "src/aurora/types.h"

#include "src/engines/kotor/types.h"
#include "src/engines/kotor/object.h"
#include "src/engines/kotorbase/types.h"
#include "src/engines/kotorbase/object.h"

namespace Engines {

Expand Down

0 comments on commit b1fe3a6

Please sign in to comment.