#include <Join.h>
Inherits Scene.
Inheritance diagram for Join:
Public Member Functions | |
Join () | |
virtual | ~Join () |
bool | load (Application *parent) |
bool | unload () |
bool | update () |
bool | drawFrame () |
Protected Member Functions | |
Vec4 | getPlayerChatColor (int playerID) |
bool | loadGalaxies () |
bool | unloadGalaxies () |
void | setLvl (int galaxy, int lvl, const char *name, const char *file) |
bool | setGalaxy (int galaxy, const char *name, int levels) |
void | networkLoop () |
void | serverLoop () |
bool | addLevel (int galaxy, int level) |
bool | removeLevel () |
void | drawGalaxies () |
void | drawLevels () |
void | drawQuad (TextureID tex, float x, float y, float w, float h) |
void | setCamera (Vec3 pos, float pitch, float heading, bool soft=false) |
Protected Attributes | |
TextureID | m_textures [JOIN_TEXTURES] |
OpenGLObject * | m_objects [JOIN_OBJECTS] |
Sound | m_sounds [JOIN_SOUNDS] |
SLight | m_lights [JOIN_LIGHTS] |
int | m_selectedGalaxy |
int | m_selectedLevel |
float | m_camDist |
bool | m_camReached |
TextureID | m_texModels [MODELS] |
Definition at line 49 of file Join.h.
|
Author: Petter Alstermark, petter@alstermark.com |
|
Definition at line 19 of file Join.cpp. References unload(). Here is the call graph for this function: |
|
Definition at line 935 of file Join.cpp. References g_galaxies, g_gameInfo, gne, Gne::isServer(), JOIN_NET_ADD, JOIN_SOUND_ADD, SGameInfo::lvlList, m_sounds, MAX_LVL_LIST, SGameInfo::nLvls, Sound::play(), and Gne::setPlayerExtras(). Referenced by networkLoop(), and update(). Here is the call graph for this function: |
|
|
Definition at line 611 of file Join.cpp. References Renderer::apply(), Application::camera, DEPTH_NONE, g_galaxies, g_time, Camera::getPosition(), GL_TEXTURE0_ARB, glMultiTexCoord2fARB, JOIN_GALAXIES, Scene::m_parent, ONE, SGalaxyInfo::pos, Application::renderer, Renderer::setBlending(), Renderer::setDepthFunc(), Renderer::setTextures(), Vec3::x, Vec3::y, and Vec3::z. Referenced by drawFrame(). Here is the call graph for this function: |
|
Definition at line 803 of file Join.cpp. References Renderer::apply(), COLOR, OpenGLObject::draw(), g_frameTime, g_galaxies, SLevelInfo::isSet, JOIN_OBJ_BOX, JOIN_OBJ_SPHERE, JOIN_TEX_SELECTION, SGalaxyInfo::lvls, m_objects, Scene::m_parent, m_selectedGalaxy, m_selectedLevel, m_textures, SGalaxyInfo::nLvls, ONE, PIdiv180, SGalaxyInfo::pos, Application::renderer, Renderer::setBlending(), Renderer::setMask(), Renderer::setTextures(), Vec3::x, Vec3::y, and Vec3::z. Referenced by drawFrame(). Here is the call graph for this function: |
|
Definition at line 981 of file Join.cpp. References Renderer::apply(), COLOR, GL_TEXTURE0_ARB, glMultiTexCoord2fARB, Scene::m_parent, ONE, Application::renderer, Renderer::setBlending(), Renderer::setMask(), and Renderer::setTextures(). Referenced by drawFrame(). Here is the call graph for this function: |
|
Definition at line 1010 of file Join.cpp. References LOG_MISC, Vec4::w, Vec4::x, Vec4::y, and Vec4::z. Referenced by load(), and networkLoop(). |
|
|
-------------------------------------------------- PINK -------------------------------------------------- if (!setGalaxy(JOIN_GALAXY_PINK2, "Pink", 3)) return false; setLvl(JOIN_GALAXY_PINK2, 0, "Fun", "pink\\pink1.lvl"); setLvl(JOIN_GALAXY_PINK2, 1, "Heartbeat", "pink\\pink2.lvl"); setLvl(JOIN_GALAXY_PINK2, 2, "Fluffy", "pink\\pink3.lvl"); -------------------------------------------------- ELECTRONIC -------------------------------------------------- if (!setGalaxy(JOIN_GALAXY_ELECTRONIC2, "Electronic", 3)) return false; setLvl(JOIN_GALAXY_ELECTRONIC2, 0, "ZeroOne", "electronic\\electronic1.lvl"); setLvl(JOIN_GALAXY_ELECTRONIC2, 1, "Bits And Bugs", "electronic\\electronic2.lvl"); setLvl(JOIN_GALAXY_ELECTRONIC2, 2, ":)", "electronic\\electronic3.lvl"); Definition at line 459 of file Join.cpp. References g_galaxies, JOIN_GALAXIES, JOIN_GALAXY_ELECTRONIC, JOIN_GALAXY_ICE, JOIN_GALAXY_ICE2, JOIN_GALAXY_LAVA, JOIN_GALAXY_LAVA2, JOIN_GALAXY_PINK, PIdiv180, SGalaxyInfo::pos, setGalaxy(), setLvl(), Vec3::x, and Vec3::z. Referenced by load(). Here is the call graph for this function: |
|
|
Definition at line 960 of file Join.cpp. References g_gameInfo, gne, Gne::isServer(), JOIN_NET_REMOVE, JOIN_SOUND_REMOVE, SGameInfo::lvlList, m_sounds, SGameInfo::nLvls, Sound::play(), and Gne::setPlayerExtras(). Referenced by networkLoop(), and update(). Here is the call graph for this function: |
|
Author: Petter Alstermark, petter@alstermark.com Just some server functions (to get overview) Definition at line 12 of file Join_server.cpp. References gne, Gne::isRunning(), and Gne::isServer(). Referenced by update(). Here is the call graph for this function: |
|
Definition at line 885 of file Join.cpp. References Application::camera, g_frameTime, Camera::getHeading(), Camera::getPitch(), Camera::getPosition(), Vec3::length(), m_camDist, m_camReached, Scene::m_parent, Vec3::normalize(), Camera::setHeading(), Camera::setPitch(), and Camera::setPosition(). Referenced by update(). Here is the call graph for this function: |
|
Definition at line 577 of file Join.cpp. References Renderer::addTexture(), g_galaxies, SGalaxyInfo::isSet, Scene::m_parent, SGalaxyInfo::nLvls, Application::renderer, and TEXTURE_NONE. Referenced by loadGalaxies(). Here is the call graph for this function: |
|
Definition at line 568 of file Join.cpp. References g_galaxies, SLevelInfo::isSet, and SGalaxyInfo::lvls. Referenced by loadGalaxies(). |
|
Reimplemented from Scene. Definition at line 148 of file Join.cpp. References OpenGLObject::clearVertexBuffer(), Renderer::deleteTexture(), JOIN_OBJECTS, JOIN_SOUNDS, JOIN_TEXTURES, LOG_SUCCESS, Scene::m_loaded, m_objects, Scene::m_parent, m_sounds, m_texModels, m_textures, MODELS, Application::renderer, Sound::unload(), and unloadGalaxies(). Referenced by ~Join(). Here is the call graph for this function: |
|
Definition at line 596 of file Join.cpp. References Renderer::deleteTexture(), g_galaxies, JOIN_GALAXIES, Scene::m_parent, and Application::renderer. Referenced by unload(). Here is the call graph for this function: |
|
if (m_parent->keys[13]) { menuMainSelect(); m_sounds[MENU_SOUND_DOSELECT].play(); m_parent->keys[13] = false; } Reimplemented from Scene. Definition at line 193 of file Join.cpp. References addLevel(), SGameInfo::currLvl, Gne::disconnect(), g_galaxies, g_gameInfo, g_selectedScene, gne, Gne::isServer(), JOIN_GALAXIES, JOIN_NET_SELECT, JOIN_NET_START, Application::keys, LOG_MISC, SGameInfo::lvlList, Scene::m_loaded, Scene::m_parent, m_selectedGalaxy, m_selectedLevel, networkLoop(), SGalaxyInfo::nLvls, PI, SGalaxyInfo::pos, removeLevel(), SCENE_MENU, serverLoop(), setCamera(), Gne::setPlayerExtras(), SGameInfo::thisLevel, Vec3::x, and Vec3::z. Here is the call graph for this function: |
|
Definition at line 87 of file Join.h. Referenced by setCamera(). |
|
Definition at line 88 of file Join.h. Referenced by setCamera(). |
|
Definition at line 82 of file Join.h. Referenced by drawFrame(), and load(). |
|
Definition at line 78 of file Join.h. Referenced by drawFrame(), drawLevels(), load(), and unload(). |
|
Definition at line 84 of file Join.h. Referenced by drawFrame(), drawLevels(), load(), networkLoop(), and update(). |
|
Definition at line 85 of file Join.h. Referenced by drawFrame(), drawLevels(), load(), networkLoop(), and update(). |
|
Definition at line 80 of file Join.h. Referenced by addLevel(), load(), networkLoop(), removeLevel(), and unload(). |
|
Definition at line 90 of file Join.h. Referenced by drawFrame(), load(), and unload(). |
|
Definition at line 77 of file Join.h. Referenced by drawFrame(), drawLevels(), load(), and unload(). |