So I created a module to hold all of my database type routines for my game. My class defination is as follows:
My problem is that I am getting an error in my routine that handles the increasing of the player stats. An example of my call is:
I am passing into the fuction $statValue and $player_id but I am getting an error of call to undefined method self::incStat(). I don't have this issue when I am doing database requests. I have confirmed that each stat has been defined properly in my stat.php file and I have reloaded the file through the control panel. I also have set the initStat() for each of them defined in my game Setup function. I have looked in the table and all of them are getting setup just fine.
So I am hoping someone might have another suggestion other than moving the logic over to my main game.php file.
Thanks!
Code: Select all
class ELGGameMgt extends APP_GameClass
Code: Select all
self::incStat( $statValue, "player_galicia_scoring", $player_id);
So I am hoping someone might have another suggestion other than moving the logic over to my main game.php file.
Thanks!