I'm having trouble calling a function within a class. For Example: (I'm writing from my iPhone, so I'm abbreviating a bit)
 <? Php
 class MyClass {
 __construct() {}
 public function createField() {
 // create a 300 Square Grid with 40x40px Squares }
 public function generateSpecialSquares() {
 // some squares are better than others oh my!
 setPosition (0, 0);
 }
 public function setPosition($x, $y) {
 // display any sprite at $X,$Y on the Grid }
 ?>
 I've tried the following (each time receiving a certain error)
 MyClass->setPosition(0, 0)
 $this->setPosition(0, 0)
 setPosition(0, 0)
 I can't seem to access my functions from within my class. Any help would be appreciated