Ejemplo n.º 1
0
# Make sure we use pygtk for gtk 2.0
import pygtk
#pygtk.require("2.0")
import gobject

# Import the rest of the needed modules
import os
import os.path
import gtk
import gwp
import re
import inspect
import sys

# I don't understand why gwp_config.py has to exist even if I don't import it
sys.path.append(gwp.get_system_plugins_dir())
import gettext
_ = gettext.gettext


#######
# Plugin manager class
#######
# To-Do:
# -----
##
class PluginManager:
    __module__ = 'gwp'

    # Constructor
    def __init__ (self):
Ejemplo n.º 2
0
import random
import gwp

filter_list = ["All","High Priority", "Medium Priority", "Low Priority"]
FILTER_NONE = 1

HAPP_STATE_NONE = 0
HAPP_STATE_UNHAPPY = 1
HAPP_STATE_CIVIL_WAR = 2

RUTA_QUARK_FILES = gwp.get_system_plugins_dir() + 'quark_files/'

ICONO_TRANSPARENTE = 'quark_transp.gif'
ICONO_VERDE = 'quark_verde.gif'
ICONO_AMARILLO = 'quark_amarillo.gif'
ICONO_ROJO = 'quark_rojo.gif'

PRIORIDAD_AVISO_ALTO = 3
PRIORIDAD_AVISO_MEDIO = 2
PRIORIDAD_AVISO_BAJO = 1
PRIORIDAD_AVISO_NINGUNO = 0

# Cantidades que definen cuando un planeta es considerado minero y se levantan las 
# estructuras al maximo.
# Cantidad de Minerales extraidos c/100 minas.
MINERO_EXTR_NEU = 50
MINERO_EXTR_TRI = 50
MINERO_EXTR_DUR = 30
MINERO_EXTR_MOL = 30
# Cantidad de Minerales bajo tierra.
MINERO_NEU = 2000