## Sid Meier's Civilization 4
## Copyright Firaxis Games 2005

# This is a sample file in case someone wants to to use Gillmer J. Derge's CvCustomEventsManager with other mods.
# Otherwise, you can delete it.

from CvPythonExtensions import *
import CvUtil
import CvEventManager
import sys
#(example)import UnitStatisticsUtils



# globals
###################################################

gc = CyGlobalContext()


class CvXXXEventManager:
	def __init__(self, eventManager):
	
		#################### ON EVENT MAP ######################
		self.EventKeyDown=6
		self.EventKeyUp=7
		self.bShift = False

#(example)	For every event that is included in the CustomEventManager, add an event handler.

#(example)	eventManager.addEventHandler("combatResult",self.FunctionA)
#(example)	eventManager.addEventHandler("unitCreated",self.FunctionB)
#(example)	eventManager.addEventHandler("unitLost",self.FunctionC)
			
	
	
	def FunctionA(self, argsList):

		pWinner,pLoser = argsList
#(example)	objUnitStatisticsUtils.logCombatResults(pWinner,pLoser)

	def FunctionB(self, argsList):

		pUnit = argsList[0]
		iPlayerID = pUnit.getOwner()
#(example)	objUnitStatisticsUtils.logUnitCreation(pUnit, iPlayerID)


		
	def FunctionC(self, argsList):
		print "test"
#(example)	objUnitStatisticsUtils.onUnitLost(argsList)