Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/branches/new_class_id/src/lib/shell/some_shell_commands.cc @ 9851

Last change on this file since 9851 was 9851, checked in by bensch, 18 years ago

orxonox/new_class_id: Resources now get Loaded and Unloaded correctly by will alone

File size: 2.3 KB
RevLine 
[4744]1/*
[1853]2   orxonox - the future of 3D-vertical-scrollers
3
4   Copyright (C) 2004 orx
5
6   This program is free software; you can redistribute it and/or modify
7   it under the terms of the GNU General Public License as published by
8   the Free Software Foundation; either version 2, or (at your option)
9   any later version.
[1855]10
11   ### File Specific:
[7428]12   main-programmer: Benjamin Grauer
[1855]13   co-programmer: ...
[1853]14*/
15
[7428]16/*!
17 * @file some_shell_commands.cc
18 * @brief All the ShellCommands, that should not pollute the SourceCode.
[7725]19 *
20 * This File is here, so that we do not have to pollute the Library-files
21 * with unneccessary other modules.
22 * Like this
[7428]23 */
24
[3955]25//#define DEBUG_SPECIAL_MODULE DEBUG_MODULE_
[1853]26
[7428]27#include "shell/shell_command.h"
28using namespace OrxShell;
[1853]29
[8623]30#include "network_game_rules.h"
[9777]31SHELL_COMMAND(say, NetworkGameRules, shellSay)->setAlias("say");
[1853]32
[8623]33#include "player_stats.h"
[9777]34SHELL_COMMAND(nick, PlayerStats, shellNick)->setAlias("nick");
[1856]35
[9709]36// #include "class_list.h"
37//   SHELL_COMMAND(debug, ClassList, ClassList::debugS)
38//       ->describe("Shows all registered classes, if param1: is a valid ClassName only values of this class are shown. param2: how much output")
39//       ->defaultValues(MT_NULL, 1);
[4320]40
[7428]41#include "p_node.h"
[9777]42SHELL_COMMAND(debugNode, PNode, debugNode);
43SHELL_COMMAND(setPosition, PNode, setAbsCoor);
[4320]44
[7457]45#include "render_2d.h"
[9777]46SHELL_COMMAND(toggleNodeVisibility, Render2D, toggleNodesVisibility);
[1853]47
[7457]48
[7428]49#include "material.h"
[9777]50SHELL_COMMAND(setDiffuseTexture, Material, setDiffuseMap)
51->defaultValues(MT_NULL, (int)GL_TEXTURE_2D)
52->completionPlugin(0, CompletorFileSystem());
[1853]53
[9836]54#include "loading/resource_manager.h"
[9848]55namespace Resources {
56  SHELL_COMMAND(debug, ResourceManager, debug);
57  SHELL_COMMAND(load, ResourceManager, loadFromLoadString);
[9851]58  SHELL_COMMAND(unload, ResourceManager, unloadAllBelowKeepLevelINT);
[9848]59}
[9794]60
[9777]61#include "loading/load_param_class_description.h"
[9779]62SHELL_COMMAND_STATIC(printAll, LoadParamClassDescription, &LoadParamClassDescription::printAll)
[9777]63->defaultValues(MT_NULL, true);
[9779]64SHELL_COMMAND_STATIC(capture, LoadParamClassDescription, &LoadParamClassDescription::captureDescriptions)
65    ->defaultValues(true);
[9794]66
67#include "loading/game_loader.h"
68SHELL_COMMAND(quit, GameLoader, stop)
69    ->describe("quits the game")
70    ->setAlias("orxoquit");
71
[9805]72#include "object_list.h"
[9806]73SHELL_COMMAND_STATIC(debugAll, ObjectListBase, &ObjectListBase::debugAll);
Note: See TracBrowser for help on using the repository browser.