Changed to create Wonx class and manage all resources with Wonx class. (See Wonx.x WonxP.h) When p is pressed to switch display / non-display of the screen, redraw the LCD panel Improvement. Added -Wall to compile option. We have summarized the processing part of the function which is duplicated processing in disp.c. Version 0.1 beta - from wonx-b01.tar.gz
60 lines
2.4 KiB
C
60 lines
2.4 KiB
C
#ifndef _WWSprite_h_INCLUDED_
|
|
#define _WWSprite_h_INCLUDED_
|
|
|
|
/*****************************************************************************/
|
|
/* ここから */
|
|
/*****************************************************************************/
|
|
|
|
#include <stdlib.h>
|
|
|
|
#include "WWPalette.h"
|
|
#include "WWCharacter.h"
|
|
|
|
/*****************************************************************************/
|
|
/* クラスの定義 */
|
|
/*****************************************************************************/
|
|
|
|
typedef struct _WWSprite * WWSprite;
|
|
|
|
/*****************************************************************************/
|
|
/* メンバ関数の宣言 */
|
|
/*****************************************************************************/
|
|
|
|
int WWSprite_GetNumber(WWSprite s);
|
|
int WWSprite_GetHorizontal(WWSprite s);
|
|
int WWSprite_GetVertical(WWSprite s);
|
|
int WWSprite_GetPriority(WWSprite s);
|
|
int WWSprite_GetClipping(WWSprite s);
|
|
WWPalette WWSprite_GetPalette(WWSprite s);
|
|
WWCharacter WWSprite_GetCharacter(WWSprite s);
|
|
|
|
int WWSprite_SetNumber(WWSprite s, int n);
|
|
int WWSprite_SetHorizontal(WWSprite s, int f);
|
|
int WWSprite_SetVertical(WWSprite s, int f);
|
|
int WWSprite_SetPriority(WWSprite s, int f);
|
|
int WWSprite_SetClipping(WWSprite s, int f);
|
|
WWPalette WWSprite_SetPalette(WWSprite s, WWPalette p);
|
|
WWCharacter WWSprite_SetCharacter(WWSprite s, WWCharacter c);
|
|
|
|
int WWSprite_GetX(WWSprite sprite);
|
|
int WWSprite_GetY(WWSprite sprite);
|
|
int WWSprite_SetPosition(WWSprite sprite, int x, int y);
|
|
int WWSprite_GetPixel(WWSprite sprite, int x, int y);
|
|
|
|
WWSprite WWSprite_Create(int number, int x, int y,
|
|
int horizontal, int vertical,
|
|
int priority, int clipping,
|
|
WWPalette palette, WWCharacter character);
|
|
WWSprite WWSprite_Destroy(WWSprite sprite);
|
|
int WWSprite_PrintData(WWSprite s, FILE * f);
|
|
|
|
/*****************************************************************************/
|
|
/* ここまで */
|
|
/*****************************************************************************/
|
|
|
|
#endif
|
|
|
|
/*****************************************************************************/
|
|
/* End of File. */
|
|
/*****************************************************************************/
|