Ejemplo n.º 1
0
/* Apply type to set of declared variables.  Work by recursing through sequencing constructs. */
void apply_type(node_ptr tnode, node_ptr dnode)
{
    if (dnode->ntype == S_DECL) {
	node_ptr vnode = dnode->children[0];
	vnode->wsize = tnode->wsize;
	vnode->dtype = tnode->dtype;
	return;
    }
    if (dnode->ntype == S_SEQUENCE) {
      apply_type(tnode, dnode->children[0]);
      apply_type(tnode, dnode->children[1]);
    }
}
/**
 * @brief Applies the data in the GUI to the entity.
 */
void EditEntityDialog::apply() {

  apply_simple_booleans();
  apply_simple_integers();
  apply_simple_strings();

  apply_behavior();
  apply_breed();
  apply_damage_on_enemies();
  apply_destination();
  apply_destination_map();
  apply_direction();
  apply_font();
  apply_ground();
  apply_layer();
  apply_maximum_moves();
  apply_model();
  apply_name();
  apply_opening_method();
  apply_rank();
  apply_savegame_variable();
  apply_size();
  apply_sound();
  apply_sprite();
  apply_subtype();
  apply_transition();
  apply_treasure();
  apply_type();
  apply_weight();
  apply_xy();
}