public function get_stated_intention_str(Oedipus_StatedIntention $si, $is_plural)
 {
     switch ($si->get_tile() . $si->get_doubt()) {
         case "1":
             return 'will';
             break;
         case "0":
             return "won't";
             break;
         case "1?":
             return 'will perhaps';
             break;
         case "0?":
             return "probably won't";
             break;
         case "1x":
             $str = "will, (but doesn't believe ";
             if ($is_plural) {
                 $str .= 'them)';
             } else {
                 $str .= 'him/her)';
             }
             return $str;
             break;
         case "0x":
             $str = "won't, (but doesn't believe ";
             if ($is_plural) {
                 $str .= 'them)';
             } else {
                 $str .= 'him/her)';
             }
             return $str;
             break;
     }
     return 'will';
 }
 public function get_stated_intention_tile(Oedipus_StatedIntention $stated_intention, Oedipus_Actor $actor)
 {
     //                <a href="#" class="si-tile" id="actor1-option1">0</a>
     if ($this->edit_mode) {
         $html_tile_link = PublicHTML_URLHelper::get_oo_page_url('Oedipus_TableEditorRedirectScript', array('table_id' => $this->table->get_id(), 'edit_stated_intention' => 1, 'stated_intention_id' => $stated_intention->get_id(), 'stated_intention_tile' => $stated_intention->get_tile(), 'stated_intention_doubt' => $stated_intention->get_doubt()));
     } else {
         $html_tile_link = new HTMLTags_URL();
         $html_tile_link->set_file('#');
     }
     $html_tile = new HTMLTags_A($stated_intention->get_tile() . $stated_intention->get_doubt());
     $html_tile->set_href($html_tile_link);
     $html_tile->set_attribute_str('class', 'si-tile');
     $html_tile_id = $actor->get_color() . $stated_intention->get_tile() . $this->add_q_to_doubt($stated_intention->get_doubt());
     $html_tile->set_attribute_str('id', $html_tile_id);
     return $html_tile;
 }
 private function draw_stated_intention_tile(Oedipus_StatedIntention $stated_intention, Oedipus_Character $character, $x, $y)
 {
     $stated_intention_position = $stated_intention->get_tile();
     switch ($stated_intention_position) {
         case '1':
             $position_filename_part = '_filled';
             break;
         case '0':
         default:
             $position_filename_part = '_empty';
     }
     $stated_intention_doubt = $stated_intention->get_doubt();
     switch ($stated_intention_doubt) {
         case '?':
             $doubt_filename_part = '_question';
             break;
         case 'x':
             $doubt_filename_part = '_x';
             break;
         case '':
         default:
             $doubt_filename_part = '';
     }
     //                print_r(
     //                        "/project-specific/public-html/images/position-tiles/40px-png/squares/"
     //                        . $position_character->get_color()
     //                        . $position_filename_part
     //                        . $doubt_filename_part
     //                );exit;
     $tile = $this->load_png(PROJECT_ROOT . "/project-specific/public-html/images/position-tiles/40px-png/diamonds/" . $character->get_color() . $position_filename_part . $doubt_filename_part . '.png');
     /*
      * Offset $x and $y to position tile better
      */
     $y -= $this->label_height / 2;
     //                $y += 5;
     $x += 3;
     imagecopy($this->image, $tile, $x, $y, 0, 0, 50, 50);
 }
 public function get_stated_intention_tile(Oedipus_StatedIntention $stated_intention, Oedipus_Character $character, $explanation)
 {
     //                <a href="#" class="si-tile" id="character1-option1">0</a>
     if ($this->frame->is_editable()) {
         $html_tile_link = PublicHTML_URLHelper::get_oo_page_url('Oedipus_EditFrameRedirectScript', array('frame_id' => $this->frame->get_id(), 'edit_stated_intention' => 1, 'stated_intention_id' => $stated_intention->get_id(), 'stated_intention_tile' => $stated_intention->get_tile(), 'stated_intention_doubt' => $stated_intention->get_doubt()));
         if (isset($_GET['edit_frame'])) {
             $html_tile_link->set_get_variable('return_to_get', 'edit_frame');
         }
     } else {
         $html_tile_link = new HTMLTags_URL();
         $html_tile_link->set_file('#');
     }
     $html_tile = new HTMLTags_A($stated_intention->get_tile() . $stated_intention->get_doubt());
     $html_tile->set_href($html_tile_link);
     /**
      * An explanation for the position is set here in the
      * title attribute, for the javascript to use as a
      * cool -tip
      */
     $html_tile->set_attribute_str('title', Oedipus_LanguageHelper::get_possessive($character->get_name()) . " Stated Intention" . '|' . $explanation);
     $html_tile->set_attribute_str('class', 'si-tile');
     $html_tile_id = $character->get_color() . $stated_intention->get_tile() . $this->add_q_to_doubt($stated_intention->get_doubt());
     $html_tile->set_attribute_str('id', $html_tile_id);
     return $html_tile;
 }