private int CheckSpecialVar(SymbolTable symbolTable) { int ret = 0; String imageFilename = symbolTable.getImageFilename(); if (imageFilename != null && imageFilename.Length > 0) { filename = imageFilename; symbolTable.setImageFilename(""); } if (symbolTable.get("isFriendBullet") == 1) { isFriendBullet = true; } if (symbolTable.get("isPlayer") == 1) { isPlayer = true; ret = 1; } if (symbolTable.get("isEnemy") == 1) { isEnemy = true; ret = 2; } if (symbolTable.ContainsKey("isScene")) { isScene = symbolTable.get("isScene") == 1; } if (symbolTable.ContainsKey("isVisible")) { isVisible = symbolTable.get("isVisible") == 1; } return(ret); }
public double generate(SymbolTable table) { table.setImageFilename(filename); return(0); }