~ubuntu-branches/ubuntu/vivid/rlvm/vivid-proposed

« back to all changes in this revision

Viewing changes to src/modules/modules.cc

  • Committer: Package Import Robot
  • Author(s): Ying-Chun Liu (PaulLiu)
  • Date: 2014-10-22 03:24:19 UTC
  • mfrom: (1.1.8)
  • Revision ID: package-import@ubuntu.com-20141022032419-yqxls9ky4n1w811n
Tags: 0.14-1
* New upstream release
* Bump Standards-Version to 3.9.6: nothing needs to be changed

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
// -*- Mode: C++; tab-width:2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
 
2
// vi:tw=80:et:ts=2:sts=2
 
3
//
 
4
// -----------------------------------------------------------------------
 
5
//
 
6
// This file is part of RLVM, a RealLive virtual machine clone.
 
7
//
 
8
// -----------------------------------------------------------------------
 
9
//
 
10
// Copyright (C) 2006 Elliot Glaysher
 
11
//
 
12
// This program is free software; you can redistribute it and/or modify
 
13
// it under the terms of the GNU General Public License as published by
 
14
// the Free Software Foundation; either version 3 of the License, or
 
15
// (at your option) any later version.
 
16
//
 
17
// This program is distributed in the hope that it will be useful,
 
18
// but WITHOUT ANY WARRANTY; without even the implied warranty of
 
19
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
20
// GNU General Public License for more details.
 
21
//
 
22
// You should have received a copy of the GNU General Public License
 
23
// along with this program; if not, write to the Free Software
 
24
// Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
 
25
//
 
26
// -----------------------------------------------------------------------
 
27
 
 
28
#include "machine/rlmachine.h"
 
29
 
 
30
#include "modules/module_bgm.h"
 
31
#include "modules/module_bgr.h"
 
32
#include "modules/module_dll.h"
 
33
#include "modules/module_debug.h"
 
34
#include "modules/module_event_loop.h"
 
35
#include "modules/module_g00.h"
 
36
#include "modules/module_gan.h"
 
37
#include "modules/module_grp.h"
 
38
#include "modules/module_jmp.h"
 
39
#include "modules/module_koe.h"
 
40
#include "modules/module_mem.h"
 
41
#include "modules/module_mov.h"
 
42
#include "modules/module_msg.h"
 
43
#include "modules/module_obj_creation.h"
 
44
#include "modules/module_obj_fg_bg.h"
 
45
#include "modules/module_obj_management.h"
 
46
#include "modules/module_obj_getters.h"
 
47
#include "modules/module_os.h"
 
48
#include "modules/module_pcm.h"
 
49
#include "modules/module_refresh.h"
 
50
#include "modules/module_scr.h"
 
51
#include "modules/module_se.h"
 
52
#include "modules/module_sel.h"
 
53
#include "modules/module_shk.h"
 
54
#include "modules/module_shl.h"
 
55
#include "modules/module_str.h"
 
56
#include "modules/module_sys.h"
 
57
#include "systems/base/graphics_system.h"
 
58
#include "systems/base/system.h"
 
59
 
 
60
void AddAllModules(RLMachine& rlmachine) {
 
61
  // Attatch the modules for some commands
 
62
  rlmachine.AttachModule(new BgmModule);
 
63
  rlmachine.AttachModule(new BgrModule);
 
64
  rlmachine.AttachModule(new BraModule);
 
65
  rlmachine.AttachModule(new ChildGanBgModule);
 
66
  rlmachine.AttachModule(new ChildGanFgModule);
 
67
  rlmachine.AttachModule(new ChildObjBgCreationModule);
 
68
  rlmachine.AttachModule(new ChildObjBgGettersModule);
 
69
  rlmachine.AttachModule(new ChildObjBgManagement);
 
70
  rlmachine.AttachModule(new ChildObjBgModule);
 
71
  rlmachine.AttachModule(new ChildObjFgCreationModule);
 
72
  rlmachine.AttachModule(new ChildObjFgGettersModule);
 
73
  rlmachine.AttachModule(new ChildObjFgManagement);
 
74
  rlmachine.AttachModule(new ChildObjFgModule);
 
75
  rlmachine.AttachModule(new ChildObjRangeBgModule);
 
76
  rlmachine.AttachModule(new ChildObjRangeFgModule);
 
77
  rlmachine.AttachModule(new DLLModule);
 
78
  rlmachine.AttachModule(new DebugModule);
 
79
  rlmachine.AttachModule(new EventLoopModule);
 
80
  rlmachine.AttachModule(new G00Module);
 
81
  rlmachine.AttachModule(new GanBgModule);
 
82
  rlmachine.AttachModule(new GanFgModule);
 
83
  rlmachine.AttachModule(new GrpModule);
 
84
  rlmachine.AttachModule(new JmpModule);
 
85
  rlmachine.AttachModule(new KoeModule);
 
86
  rlmachine.AttachModule(new LayeredShakingModule);
 
87
  rlmachine.AttachModule(new MemModule);
 
88
  rlmachine.AttachModule(new MovModule);
 
89
  rlmachine.AttachModule(new MsgModule);
 
90
  rlmachine.AttachModule(new ObjBgCreationModule);
 
91
  rlmachine.AttachModule(new ObjBgGettersModule);
 
92
  rlmachine.AttachModule(new ObjBgManagement);
 
93
  rlmachine.AttachModule(new ObjBgModule);
 
94
  rlmachine.AttachModule(new ObjFgCreationModule);
 
95
  rlmachine.AttachModule(new ObjFgGettersModule);
 
96
  rlmachine.AttachModule(new ObjFgManagement);
 
97
  rlmachine.AttachModule(new ObjFgModule);
 
98
  rlmachine.AttachModule(new ObjManagement);
 
99
  rlmachine.AttachModule(new ObjRangeBgModule);
 
100
  rlmachine.AttachModule(new ObjRangeFgModule);
 
101
  rlmachine.AttachModule(new OsModule);
 
102
  rlmachine.AttachModule(new PcmModule);
 
103
  rlmachine.AttachModule(new RefreshModule);
 
104
  rlmachine.AttachModule(new ScrModule);
 
105
  rlmachine.AttachModule(new SeModule);
 
106
  rlmachine.AttachModule(new SelModule);
 
107
  rlmachine.AttachModule(new ShakingModule);
 
108
  rlmachine.AttachModule(new StrModule);
 
109
  rlmachine.AttachModule(new SysModule);
 
110
}