[pjmoo-gbf commit] r131 - trunk/doc/uml/GBF

0 views
Skip to first unread message

codesite...@google.com

unread,
Jun 22, 2008, 8:42:37 AM6/22/08
to pjmo...@googlegroups.com
Author: davidferreira.FZ
Date: Sun Jun 22 05:41:43 2008
New Revision: 131

Added:
trunk/doc/uml/GBF/147228.diagram
Modified:
trunk/doc/uml/GBF/128080.bodies
trunk/doc/uml/GBF/134556
trunk/doc/uml/GBF/GBF.prj

Log:
Atualizando documentação UML;

Modified: trunk/doc/uml/GBF/128080.bodies
==============================================================================
--- trunk/doc/uml/GBF/128080.bodies (original)
+++ trunk/doc/uml/GBF/128080.bodies Sun Jun 22 05:41:43 2008
@@ -1,8 +1,15 @@
class FrameLayer
!!!128080.cpp!!! FrameLayer()
mapa=NULL;
+ mapaColisao=NULL;
!!!128208.cpp!!! ~FrameLayer()
- delete[] mapa;
+ if (mapa!=NULL){
+ delete[] mapa;
+ }
+
+ if (mapaColisao!=NULL){
+ delete[] mapaColisao;
+ }
!!!128336.cpp!!! desenhar() : void
int i,IMG,bloco_y,bloco_x;
int offset_x, offset_y;
@@ -220,3 +227,35 @@
linha_x+=tamanho.w;
}
*/
+!!!153372.cpp!!! carregarMapaMemoria(in vetor : int) : void
+ if (mapa!=NULL){
+ delete []mapa;
+ }
+
+ GBF::Dimensao tamanho = mundo.getTiles();
+
+ int total = tamanho.w*tamanho.h;
+
+ mapa = new int[total];
+
+ for (int i=0; i<total; i++){
+ mapa[i]=vetor[i];
+ }
+!!!154524.cpp!!! carregarColisaoMemoria(in vetor : int) : void
+ if (mapaColisao!=NULL){
+ delete []mapaColisao;
+ }
+
+ GBF::Dimensao tamanho = mundo.getTiles();
+
+ int total = tamanho.w*tamanho.h;
+
+ mapaColisao = new int[total];
+
+ for (int i=0; i<total; i++){
+ mapaColisao[i]=vetor[i];
+ }
+!!!154652.cpp!!! getTipoColisao(in indice : int) : int
+ return mapaColisao[indice];
+!!!154780.cpp!!! getTipoImagem(in indice : int) : int
+ return mapa[indice];

Modified: trunk/doc/uml/GBF/134556
==============================================================================
--- trunk/doc/uml/GBF/134556 (original)
+++ trunk/doc/uml/GBF/134556 Sun Jun 22 05:41:43 2008
@@ -1,6 +1,6 @@
format 55
"Layer" // Framework GBF::GBF::Imagem::Layer
- revision 4
+ revision 8
modified_by 28 "david"
// class settings
//class diagram settings
@@ -1073,9 +1073,19 @@
idl_decl ""
end

+ attribute 143260 "mapaColisao"
+ protected explicit_type "int"
+ cpp_decl " ${comment}${static}${mutable}${volatile}${const}${type} * ${name}${value};
+"
+ java_decl ""
+ php_decl ""
+ python_decl ""
+ idl_decl ""
+ end
+
classrelation 128464 // mundo (<directional composition>)
relation 128464 *-->
- a role_name "mundo" protected
+ a role_name "mundo" public
cpp default " ${comment}${static}${mutable}${volatile}${const}${type} ${name}${value};
"
classrelation_ref 128464 // mundo (<directional composition>)
@@ -1099,6 +1109,75 @@
classrelation_ref 128592 // <dependency>
b parent class_ref 128720 // LayerManager
end
+
+ operation 153372 "carregarMapaMemoria"
+ public explicit_return_type "void"
+ nparams 1
+ param in name "vetor" explicit_type "int"
+ cpp_decl " ${comment}${friend}${static}${inline}${virtual}${type} ${name}${(}${t0} ${p0}[]${)}${const}${volatile}${throw}${abstract};
+"
+ cpp_def "${comment}${inline}${type} ${class}::${name}${(}${t0} ${p0}[]${)}${const}${volatile}${throw}${staticnl}
+{
+${body}}"
+
+
+
+
+ comment "Carrega tilemap apartir de um vetor pr�-alocado em memoria."
+ end
+
+ operation 154524 "carregarColisaoMemoria"
+ public explicit_return_type "void"
+ nparams 1
+ param in name "vetor" explicit_type "int"
+ cpp_decl " ${comment}${friend}${static}${inline}${virtual}${type} ${name}${(}${t0} ${p0}[]${)}${const}${volatile}${throw}${abstract};
+"
+ cpp_def "${comment}${inline}${type} ${class}::${name}${(}${t0} ${p0}[]${)}${const}${volatile}${throw}${staticnl}
+{
+${body}}"
+
+
+
+
+ comment "Carrega mapa de colis�o apartir de um vetor pr�-alocado em memoria."
+ end
+
+ operation 154652 "getTipoColisao"
+ public explicit_return_type "int"
+ nparams 1
+ param in name "indice" explicit_type "int"
+ cpp_decl " ${comment}${friend}${static}${inline}${virtual}${type} ${name}${(}${t0} ${p0}${)}${const}${volatile}${throw}${abstract};
+"
+ cpp_def "${comment}${inline}${type} ${class}::${name}${(}${t0} ${p0}${)}${const}${volatile}${throw}${staticnl}
+{
+${body}}"
+
+
+
+
+ comment "Retorna o tipo de colis�o usado no brick"
+ end
+
+ operation 154780 "getTipoImagem"
+ public explicit_return_type "int"
+ nparams 1
+ param in name "indice" explicit_type "int"
+ cpp_decl " ${comment}${friend}${static}${inline}${virtual}${type} ${name}${(}${t0} ${p0}${)}${const}${volatile}${throw}${abstract};
+"
+ cpp_def "${comment}${inline}${type} ${class}::${name}${(}${t0} ${p0}${)}${const}${volatile}${throw}${staticnl}
+{
+${body}}"
+
+
+
+
+ comment "Retorna o tipo de imagem usado no brick"
+ end
+ end
+
+ classdiagram 147228 "Layer"
+ draw_all_relations default hide_attributes default hide_operations default show_members_full_definition default show_members_visibility default show_members_stereotype default show_members_multiplicity default show_members_initialization default member_max_width 0 show_parameter_dir default show_parameter_name default package_name_in_tab default class_drawing_mode default drawing_language default show_context_mode default auto_label_position default show_infonote default shadow default
+ size A4
end
end

Added: trunk/doc/uml/GBF/147228.diagram
==============================================================================
--- (empty file)
+++ trunk/doc/uml/GBF/147228.diagram Sun Jun 22 05:41:43 2008
@@ -0,0 +1,58 @@
+format 55
+
+classcanvas 128028 class_ref 128080 // FrameLayer
+ draw_all_relations default hide_attributes default hide_operations default show_members_full_definition default show_members_visibility default show_members_stereotype default show_members_multiplicity default show_members_initialization default member_max_width 0 show_parameter_dir default show_parameter_name default package_name_in_tab default class_drawing_mode default drawing_language default show_context_mode default auto_label_position default show_infonote default shadow default
+ xyz 341 11 2000
+ end
+classcanvas 128156 class_ref 128336 // LayerCamera
+ draw_all_relations default hide_attributes default hide_operations default show_members_full_definition default show_members_visibility default show_members_stereotype default show_members_multiplicity default show_members_initialization default member_max_width 0 show_parameter_dir default show_parameter_name default package_name_in_tab default class_drawing_mode default drawing_language default show_context_mode default auto_label_position default show_infonote default shadow default
+ xyz 33 268 3005
+ end
+classcanvas 128540 class_ref 128592 // LayerMundo
+ draw_all_relations default hide_attributes default hide_operations default show_members_full_definition default show_members_visibility default show_members_stereotype default show_members_multiplicity default show_members_initialization default member_max_width 0 show_parameter_dir default show_parameter_name default package_name_in_tab default class_drawing_mode default drawing_language default show_context_mode default auto_label_position default show_infonote default shadow default
+ xyz 219 511 3005
+ end
+classcanvas 129052 class_ref 128720 // LayerManager
+ draw_all_relations default hide_attributes default hide_operations default show_members_full_definition default show_members_visibility default show_members_stereotype default show_members_multiplicity default show_members_initialization default member_max_width 0 show_parameter_dir default show_parameter_name default package_name_in_tab default class_drawing_mode default drawing_language default show_context_mode default auto_label_position default show_infonote default shadow default
+ xyz 647 446 2004
+ end
+relationcanvas 128284 relation_ref 128304 // <dependency>
+ from ref 128156 z 1999 stereotype "<<friend>>" xyz 213 368 3000 to ref 128028
+ no_role_a no_role_b
+ no_multiplicity_a no_multiplicity_b
+relationcanvas 128412 relation_ref 128208 // <directional composition>
+ geometry VHr
+ from ref 128028 z 1999 to point 90 232
+ line 129820 z 1999 to ref 128156
+ role_a_pos 102 245 3000 no_role_b
+ no_multiplicity_a no_multiplicity_b
+relationcanvas 128668 relation_ref 128176 // <dependency>
+ from ref 128540 z 1999 stereotype "<<friend>>" xyz 373 487 3000 to ref 128028
+ no_role_a no_role_b
+ no_multiplicity_a no_multiplicity_b
+relationcanvas 128796 relation_ref 128976 // <directional aggregation>
+ geometry HVH
+ from ref 128156 z 1999 to point 183 473
+ line 129948 z 1999 to point 183 659
+ line 130076 z 1999 to ref 128540
+ role_a_pos 169 639 3000 no_role_b
+ no_multiplicity_a no_multiplicity_b
+relationcanvas 128924 relation_ref 128464 // <directional composition>
+ geometry HVr
+ from ref 128028 z 1999 to point 449 659
+ line 130460 z 1999 to ref 128540
+ role_a_pos 407 639 3000 no_role_b
+ no_multiplicity_a no_multiplicity_b
+relationcanvas 129180 relation_ref 129104 // <unidirectional association>
+ from ref 129052 z 1999 to point 617 446
+ line 129308 z 1999 to point 617 476
+ line 129436 z 1999 to ref 129052
+ role_a_pos 587 471 3000 no_role_b
+ no_multiplicity_a no_multiplicity_b
+relationcanvas 129564 relation_ref 128592 // <dependency>
+ geometry HV
+ from ref 128028 z 1999 stereotype "<<friend>>" xyz 603 234 3000 to point 707 232
+ line 130588 z 1999 to ref 129052
+ no_role_a no_role_b
+ no_multiplicity_a no_multiplicity_b
+end

Modified: trunk/doc/uml/GBF/GBF.prj
==============================================================================
--- trunk/doc/uml/GBF/GBF.prj (original)
+++ trunk/doc/uml/GBF/GBF.prj Sun Jun 22 05:41:43 2008
@@ -1,6 +1,6 @@
format 55
"GBF"
- revision 24
+ revision 25
modified_by 28 "david"

artifact_default_description "// GBF - Gamework's Brazilian Framework

Reply all
Reply to author
Forward
0 new messages